Welcome to Streamlit¶
Streamlit is an open-source Python library that makes it easy to build beautiful custom web-apps for machine learning and data science.
To use it, just
pip install streamlit, then import it, write a couple lines
of code, and run your script with
streamlit run [filename]. Streamlit watches
for changes on each save and updates the app live while you’re coding. Code
runs from top to bottom, always from a clean state, and with no need for
callbacks. It’s a simple and powerful app model that lets you build rich UIs
incredibly quickly. To learn more about how Streamlit works, see Main
You may also want to check out this four-part video recorded at our PyData talk on December 2019. In it we describe the motivation behind Streamlit, then go over how to install and create apps with it.
Follow these steps and to get a sample app running in less than 5 minutes.
The easiest way to learn how to use Streamlit is to actually try it out. Our get started guide walks you through the basics of building a Streamlit app.
Build your first app¶
Create an app to explore a dataset of Uber ride pickups in New York City. You’ll learn about caching, drawing charts, plotting data on a map, and how to use interactive widgets.