This is an experimental feature. Experimental features and their APIs may change or be removed at any time. To learn more, click here.

Rerun the script immediately.

When st.experimental_rerun() is called, the script is halted - no more statements will be run, and the script will be queued to re-run from the top.

If this function is called outside of Streamlit, it will raise an Exception.

Function signature


Was this page helpful?

editSuggest edits

Still have questions?

Our forums are full of helpful information and Streamlit experts.