💸 Reduce costs by consolidating proprietary analytics & reporting software to open-source & Dash.
Challenge us to replace your analytics with Dash and reduce costs.

Page view change when plot updates

Hello Dash community!

I am running into a small problem where the page view changes whenever a FornaContainer (from Dash Bio) is updated in the app. Anyone know of a solution to get rid of this page view update?

Here it is in action:

Thanks in advance!

Best,
Jonathan

Hi,

Are you creating a file or modifying anything in your app when playing with it? It should be linked to “Hot Reload”

Something like this should do the trick

if __name__ == '__main__':
    app.run_server(debug=True, dev_tools_hot_reload = False)

More info here : https://dash.plotly.com/devtools

Unfortunately this didn’t work for me, but thanks for the suggestion!

Could it have something to do with the FornaContainer?

It could! Are you able to reproduce the issue in a small example with dummy data and controls? If so, then it might be a bug.

ps - that app looks really interesting, it’s nice to see some dash bio components in the wild. what’s it for?

Great suggestion! I created a small example and realized the page update has to do with the dcc.Loading component I’ve placed around the FornaContainer. If I remove the dcc.Loading component, the page update doesn’t occur.

Any ideas on how to solve this now that we know it’s related to dcc.Loading? If not, no worries!

Yes, I was super excited to see all the new Dash Bio components and wanted to put them to good use! We’ve been working on a design tool for a new CRISPR genome editing technology called Prime Editing (PE). Our design tool is live here if you wanted to check it out: http://primedesign.pinellolab.org/

Thank you for all the hard work with Dash! :slight_smile:

Nice! We’ve seen a few issues with loading component wrapping other components, not sure what the issue is in this case. I’m not sure of a workaround for now. I was going to suggest the CSS loading states instead (last example in https://dash.plotly.com/loading-states), but it looks like that CSS loading class isn’t applied to dash-bio yet unfortunately.

Here are two issues you can track. It’ll probably be a while before we get around to these though:

  1. https://github.com/plotly/dash/issues/1271
  2. https://github.com/plotly/dash-bio/issues/503

Very awesome app by the way!

1 Like