Black Lives Matter. Please consider donating to Black Girls Code today.

Avoiding regraphing if output same

I have a dash app that runs every second and graphs the heatmap of some data. The data gets updated frequently but most of the time it is still the same as the previous run, so there’s no need to regraph the data. Is there a way to make it so that it doesn’t regraph everytime?

If you throw an exception inside a callback, Dash’s front-end will ignore the update.

1 Like