dcc.store

Published onesixx on

https://dash.plotly.com/dash-core-components

dcc.store

https://dash.plotly.com/dash-core-components/store

https://dash.plotly.com/sharing-data-between-callbacks

https://github.com/sixxchung/Dash-by-Plotly

브라우저에 JSON 저장할때 사용

서버의 부담을 줄이고, Callback간에 데이터를 공유하기 위해

https://www.youtube.com/watch?v=dLykSQNIM1E
https://github.com/Coding-with-Adam/Dash-by-Plotly/tree/master/Dash%20Components/Store

일반적으로 2MB 까지 안전하게 보관가능하고, (데스크탑만 사용한다고 한다면 5~10MB )

ex> dropdown(data-set-chosen)에 따라 , 데이터셋(store-data)이 바뀌고,
그에 따라 그래프(graph1)와 테이블(table-placeholder)가 표시된다.

Python

얼마나 오랬동안 데이터가 유지되는지에 따라

memory : refresh될때까지 , 가장 짧은 시간동안 저장됨

seession : 브라우저를 종료하거나 탭을 닫을때까지

Local : 브라우저 쿠키같은 곳에 저장되어

Categories: Python Basic

onesixx

Blog Owner

guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x