python - Dash update dataframe from mongo (global variable) -


i have created plotly-dashboard 3 app-callbacks, 2 graphs , table relying on same underlying data exported mongodb. export data @ top of script , used within app-callbacks. able change underlying data changing name of mongo collection in text box. have managed achieve exporting mongo within each of 3 app-callbacks inefficient. whenever change of inputs of of app-callbacks export called multiple times.

i way load data pandas dataframe when name of collection changed , have global variable 3 app-callbacks mentioned.

any on issue appreciated.

ideally don't want have display dataframe either rather large.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -