Say I have a for loop where each iteration only takes a short while and I want a dash figure updated in each iteration:
for i, (idx, row) in enumerate(df.iterrows()):
app.callback(Output('my-plot', 'figure'), [Input('vector')])
I have browsed online but there is apparently no way of doing this in dash it seems. My only solution is to use the
Interval component and then the callback function retrieves some pickle files or something that are updated by running another kernel on my computer but there must be a better way.
Note: the idea is to have a graph that is updated 1 data point a time that is then appended to the graph - through Dash. Please, let me know how you would do it. It know I can just use the ordinary matplotlib.pyplot but I want a nice looking app and not matplotlib.