Streamlit 1.26.0 brings Status to show process of your app
What’s new in streamlit 1.26.0?
st.status is added to show status of your streamlit app, providing extra info to let user know what is running behind the scenes.
Other new features can be found in https://discuss.streamlit.io/t/version-1-26-0/50056
Why show status?
Status is for displaying intermediate and final output of a long loading process, this can help user to understand the running progress and details of loading.
status can also display error tell user which step raise error
How to use Status?
First of all, you need streamilt version 1.26.0 or above to use st.status upgrade your streamlit if needed.
pip install --upgrade streamlit streamlit --version
See Status in action
you can play around with Streamlit’s demo app here or use my code below to see st.status different use cases.
# basic count down using status, collpase after count down
import streamlit as st
import time
st.title('Streamlit new function Status')
st.write('hello world')
with st.status("counting down", expanded=True) as status:
for i in range(10, 0, -1):
st.write(f"{i}...")
time.sleep(1)
status.update(label="Time is up", state="complete", expanded=False)
st.button('Rerun')






