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

string - Using python and postgres, variables within execute function? -

python - Getting ESC characters and non-printables from UDP socket / buffer -