plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.32k stars 2.06k forks source link

allow persist data in URL #1456

Open bbtfr opened 3 years ago

bbtfr commented 3 years ago

Thanks so much for your interest in Dash!

Before posting an issue here, please check the Dash community forum to see if the topic has already been discussed. The community forum is also great for implementation questions. When in doubt, please feel free to just post the issue here :)


Dash support persistence, which is a simple-to-use feature for storing user choices in the UI. For now, it only support persist data in memory / localStorage / sessionStorage.

It's useful if we can persist data in url, e.g.: localhost:8050/?my_key=my_value With this, we can easily share a filled form, a tabs with specific tab opened, etc. to others by sending them a url.

ndrezn commented 1 year ago

There is a solid implementation strategy proposed by @nicolaskruchten in https://community.plotly.com/t/boilerplate-starter-app-with-state-in-url-and-state-aware-hot-reloading/71821. But, agreed that it'd be wonderful to see a first-class way to support this without building this manually!