Share App State with Shareable URL - Proof of concept

Hello all,

In someway this is a feature request as I think this would be a very valuable add to streamlit and my code is probably buggy and unsafe. Anyways…

I always wanted to be able to change an application’s state and be able to share that specific state with colleagues, even after that said application restarts. The obvious choice is to encode it in the url that is being share. So I built that functionality in to some type of wrapper, see the demo and code below:

https://shareable-url.streamlit.app/?counter=5&selected=Cat

The implementation is somewhat MacGyver-ed and should be taken as a proof-of-concept as I had little knowledge of the inner workings of streamlit and Python when I jumped into this.

Would you find this feature helpful ?

Suggestion on improvements both on functionality and implementation?

Is the streamlit team working on something “native” on this front ?

1 Like