--- title: Display progress and status slug: /develop/api-reference/status --- # Display progress and status Streamlit provides a few methods that allow you to add animation to your apps. These animations include progress bars, status messages (like warnings), and celebratory balloons. ## Animated status elements screenshot

Progress bar

Display a progress bar. ```python for i in range(101): st.progress(i) do_something_slow() ```
screenshot

Spinner

Temporarily displays a message while executing a block of code. ```python with st.spinner("Please wait..."): do_something_slow() ```
screenshot

Status container

Display output of long-running tasks in a container. ```python with st.status('Running'): do_something_slow() ```
screenshot

Toast

Briefly displays a toast message in the bottom-right corner. ```python st.toast('Butter!', icon='🧈') ```
screenshot

Balloons

Display celebratory balloons! ```python st.balloons() ```
screenshot

Snowflakes

Display celebratory snowflakes! ```python st.snow() ```
## Simple callout messages screenshot

Success box

Display a success message. ```python st.success("Match found!") ```
screenshot

Info box

Display an informational message. ```python st.info("Dataset is updated every day at midnight.") ```
screenshot

Warning box

Display warning message. ```python st.warning("Unable to fetch image. Skipping...") ```
screenshot

Error box

Display error message. ```python st.error("We encountered an error") ```
screenshot

Exception output

Display an exception. ```python e = RuntimeError("This is an exception of type RuntimeError") st.exception(e) ```
screenshot

Stqdm

The simplest way to handle a progress bar in streamlit app. Created by [@Wirg](https://github.com/Wirg). ```python from stqdm import stqdm for _ in stqdm(range(50)): sleep(0.5) ```
screenshot

Custom notification box

A custom notification box with the ability to close it out. Created by [@Socvest](https://github.com/Socvest). ```python from streamlit_custom_notification_box import custom_notification_box styles = {'material-icons':{'color': 'red'}, 'text-icon-link-close-container': {'box-shadow': '#3896de 0px 4px'}, 'notification-text': {'':''}, 'close-button':{'':''}, 'link':{'':''}} custom_notification_box(icon='info', textDisplay='We are almost done with your registration...', externalLink='more info', url='#', styles=styles, key="foo") ```
screenshot

Streamlit Extras

A library with useful Streamlit extras. Created by [@arnaudmiribel](https://github.com/arnaudmiribel/). ```python from streamlit_extras.let_it_rain import rain rain(emoji="🎈", font_size=54, falling_speed=5, animation_length="infinite",) ```