When a user interacts with a widget, Streamlit always reruns the entire script. There are ways to get around this (forms, caching, ...) but sometimes it would be really useful to just do something like st.slider(..., rerun=False).
See requests in this very popular forum post: https://discuss.streamlit.io/t/how-to-prevent-the-reloading-of-the-whole-page-when-i-let-the-user-to-perform-an-action/10800/7
This touches on the fundamental of Streamlit so we'll need to think this through carefully. No guarantees that we'll do this anytime soon! If you have use cases, please post them here (and upvote the issue!) so we can prioritize and see what's the best way to solve all problems.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

When a user interacts with a widget, Streamlit always reruns the entire script. There are ways to get around this (forms, caching, ...) but sometimes it would be really useful to just do something like
st.slider(..., rerun=False).See requests in this very popular forum post: https://discuss.streamlit.io/t/how-to-prevent-the-reloading-of-the-whole-page-when-i-let-the-user-to-perform-an-action/10800/7
This touches on the fundamental of Streamlit so we'll need to think this through carefully. No guarantees that we'll do this anytime soon! If you have use cases, please post them here (and upvote the issue!) so we can prioritize and see what's the best way to solve all problems.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.