st.write() Method in Streamlit

The st.write() method displays content in a Streamlit app. Unlike other Streamlit commands, it has unique properties that make it very flexible.

Key Features

Syntax

st.write(*args, unsafe_allow_html=False)    

Example

Python

import streamlit as st

# Versatile output
st.write("**Markdown** style or any object")    

The output of the above code is shown below:

st.write method in Streamlit