Subsurface Syntax

Subsurface Syntax

How to Use Streamlit’s st.write Function to Improve Your Streamlit Dashboard

The Swiss Army Knife of Streamlit Functions

Andy McDonald's avatar
Andy McDonald
Jan 17, 2023
∙ Paid

The Swiss Army Knife of Streamlit Functions

Photo by Bram Naus on Unsplash

When starting with Streamlit, one of the first functions you will come across when building your dashboard or app is st.write() . The Streamlit documentation describes this function as the “Swiss Army Knife of Streamlit Commands”.

It is a very versatile function that allows you to display text, emojis, markdown and much more.

Within this article, we are going to explore the ways that the st.write() function can be used to improve your Streamlit dashboards.

st.write — Streamlit Docs
Function signature st.write(*args, unsafe_allow_html=False, **kwargs) Parameters One or many objects to print to the…docs.streamlit.io

This article forms part of a series of articles I am creating on Streamlit. You can explore them at the links below.

  • Getting Started With Streamlit Web Based Applications

  • Creating True Multi-Page Streamlit Apps — The New Way (2022)

  • Getting Started With Streamlit: 5 Functions You Need to Know When Starting Out

  • Th…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture