flâneur — a map of the web's best reading

Add statefulness to apps - Streamlit Docs

docs.streamlit.io · 1,568 words · saved by 1 readers

We define access to a Streamlit app in a browser tab as a session. For each browser tab that connects to the Streamlit server, a new session is created. Streamlit reruns your script from top to bottom every time you interact with your app. Each reruns takes place in a blank slate: no variables are shared between runs.

Add statefulness to apps What is State? We define access to a Streamlit app in a browser tab as a session . For each browser tab that connects to the Streamlit server, a new session is created. Streamlit reruns your script from top to bottom every time you interact with your app. Each reruns takes place in a blank slate: no variables are shared between runs. Session State is a way to share variables between reruns, for each user session. In addition to the ability to store and persist state, Streamlit also exposes the ability to manipulate state using Callbacks. Session state also persists acr

Explore this link on the map →

related reading