Apr 24, 2025 by Cylab Researcher | 62 views
https://cylab.be/blog/414/building-streamlit-apps-with-state
This blog post is the second in our two-part series about Streamlit. If you wish to revisit the basics of Streamlit head over to our first article on how to Kickstart ML Apps with Streamlit in 30 Minutes
If you’ve been working with Streamlit, you might have noticed that your variables sometimes behave unexpectedly - disappearing or resetting when you interact with your app. Your incredible counter that increments by a value set in a slider just never seems to keep adding numbers beyond its initial value.
In this guide, we’ll explore five fundamental concepts that will help you master Streamlit’s state management and build more sophisticated applications.
We’ve created an interactive Streamlit app right here where you can follow each of the exercises.
Here’s a sneak preview of what you can expect from this tutorial:
Happy tinkering!
This blog post is licensed under
CC BY-SA 4.0