I am using dcc.Interval to dynamically update graph. This, correctly, causes the webpage to reload periodically and display new data.
What I want to accomplish is that the periodic reload of the webpage gets automatically disabled if there is an error. Normally, it just keeps reloading even if Python app is terminated.
The documentation states that n_intervals will be updated every interval milliseconds. But it does not talk about how often the callbacks are being called. Is there some documentation that describes the frequency of calling callbacks and how that can be controlled?
Hmm, I have an interval set to 50 milliseconds. I also added a print() statement in my callback and while I generally see time differences of about 0.05 seconds between calls, there are also some huge gaps.
I also want to be able to call the callback with a higher frequency but I found that any interval value of less than 50 results in the scatter plot now showing at all.
I am not sure what you mean by that. The app and the browser are running on the same system. There should be hardly any latency in getting the response.
The latency, if you were to host it, you should keep in mind.
By default, dash / flask is a sync environment, meaning completion time will block other aspects of the code. You can get around this when you host, but its still in a blocking nature.
Then you also have the rendering on the clientside for the data.
Anyways, requests will keep piling up from the browser to the server since it is not async.