What is Session State and when do we use it?
Streamlit was launched in 2019, and statefulness was a little problem for quite a long time since states weren’t managed natively. However, starting from version 0.8.4, things changed, and the official claim (https://blog.streamlit.io/session-state-for-streamlit/) was as follows:
You can now store information across app interactions and rerun!
To be honest, that claim is really perfect because it conveys everything about sessions. Streamlit’s Session State feature offers an efficient and sophisticated approach to session management. This feature enables the storage of variables across multiple reruns, facilitates the creation of interactive events on input widgets, and allows the use of callback functions to manage these events effectively.
The robust capabilities of Session State enhance the development of various applications. These capabilities include the following:
- Integrating widgets that are interdependent...