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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -