-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to share the apps settings, preferable via a custom URL? #3292
Comments
Hello @Yannik1337, I think #1169 would work in your case. This is an experimental feature that allows you to get and set URL query parameters. Here's some code using it: https://github.com/streamlit/release-demos/blob/master/0.65/demos/query_params.py |
Hey @Yannik1337 ! Thanks for the report! I would agree with @okld above. Let us know if you are needing something different. |
Hey there, the solution you have proposed solved my problems. I am looking forward to Streamlit's upcoming releases. |
Hi @Yannik1337 @kmcgrady @okld, I made a library with url-aware versions of input controls that automatically sync their state to the url query string: streamlit-permalink. |
I am looking for a way to share the state of the app. In the most simple form, this is what I am after:
A user sets some sliders, ticks some boxes.
He then can create an URL or something else that he can share. When somebody receives this link, once he opens the app he gets the same settings as the user who shared his settings.
As a URL solution I am thinking about generating a random id (caching it when needed), and all settings are connected to this ID and can be shared after clicking on a button that says
save and generate share link
.Is there some solution implemented to handle this case? Where can find further help in case such a feature is yet to come?
Thanks for your replies!
The text was updated successfully, but these errors were encountered: