Let's Make our Dash App Super Fast

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 15

  • @romanov0
    @romanov0 ปีที่แล้ว

    Thanks for these explanatory videos - they help a lot!

  • @Sujay-w3d
    @Sujay-w3d ปีที่แล้ว

    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

  • @Winterbasse
    @Winterbasse หลายเดือนก่อน

    Thank you for the video. I was running into a problem of duplicate data points using the exendData approach to update dynamic graphs with a pattern-matching callback. While I don't know what causes the issue, replacing extendData with the Patch() method for appending data to graphs has improved the performance of my app and gotten rid of the issue altogether

    • @CharmingData
      @CharmingData  หลายเดือนก่อน

      @@Winterbasse I'm glad you got it solved 🤗

  • @hurstcycles
    @hurstcycles ปีที่แล้ว

    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.

  • @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

  • @STDFme
    @STDFme ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @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?

  • @kubernetes2797
    @kubernetes2797 ปีที่แล้ว

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