Let's Make our Dash App Super Fast

Discover the power behind Dash Ag Grid, and learn to connect it to a Plotly histogram and a scatter plot.
My GitHub Code:
github.com/Coding-with-Adam/D...
Dash Docs - Patch:
dash.plotly.com/partial-prope...
Plotly Community Forum:
community.plotly.com/
Checkout my book - The Book of Dash:
www.amazon.com/Python-Dash-An...
github.com/DashBookProject/Pl...
Video layout:
00:00 - Introduction and code
03:38 - Normal Graph app
05:41 - Faster Graph app with Patch
10:17 - AG Grid Table apps
12:30 - Normal Table app
13:19 - Faster Table app using Patch
17:47 - Duplicate Callback
************************************************************************
👉 Your support keeps Charming Data running, which is proudly a 100% member-supported educational channel:
Patreon: / charmingdata
GitHub: github.com/sponsors/Coding-wi...
KZread: / @charmingdata

Пікірлер: 13

  • @romanov0
    @romanov0 Жыл бұрын

    Thanks for these explanatory videos - they help a lot!

  • @hurstcycles
    @hurstcycles9 ай бұрын

    What about adding an additional trace to an existing figure? Does the existing add_trace function also re render the entire figure? Could it be done with patch? Essentially adding data to a figure that does not already exist on the figure.

  • @STDFme
    @STDFme6 ай бұрын

    Thanks for explaining Patch, I didn't know it. My figures generally have 100k up to ~1000k points. When I change some selectors, the whole Graph needs to be updated. Will patch still have an advantage in this case or only if some datapoints need an update?

  • @CharmingData

    @CharmingData

    6 ай бұрын

    if the whole graph has to be updates with all new points, I don't think Patch would be very useful.

  • @venkat2132
    @venkat2132 Жыл бұрын

    @adam how to refresh excel based data frame for every day schedule on multipage dash app where dataset is in different folder? please help me

  • @CharmingData

    @CharmingData

    Жыл бұрын

    Try to use DCC.Store on the main page of the app, and then refer to it on the necessary pages

  • @venkat2132

    @venkat2132

    Жыл бұрын

    @@CharmingData Does this refresh the excel based dataframe data every day or every hour on the dash app?

  • @CharmingData

    @CharmingData

    Жыл бұрын

    @@venkat2132 you can choose the time interval by using dcc.Interval.

  • @venkat2132

    @venkat2132

    Жыл бұрын

    @@CharmingData yeah that is okay but what if our df is large and to get to the table/chart we have to do n no of df manipulations and reading/refreshing df every minute/5min dash has to do all this right. Is there way just refresh dataframe in data page so that app page gets latest dataframe data

  • @lucasbrecht9296
    @lucasbrecht9296 Жыл бұрын

    Thanks for the video, I'am trying to add Patch in my code right now but for some reason I have this erros: "Cannot find reference 'Patch' in __init__.py". Do you know howto solve it?

  • @CharmingData

    @CharmingData

    Жыл бұрын

    hi Lucas. did you import Patch at the very top? Do you have Dash 2.9.2 or higher installed? What is this __init__ .py file?

  • @user-dn8mr8ke5w
    @user-dn8mr8ke5w10 ай бұрын

    Suppose we have to change the css of an element then how the patch object will reach to the style of that element 7:40

  • @kubernetes2797
    @kubernetes2797 Жыл бұрын

    As a superior grogrammer, why you possess long hair that lots of grogrammers also want have