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 concepts.

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.

Install Streamlit

Follow these steps and to get a sample app running in less than 5 minutes.

  1. Make sure that you have Python 2.7.0 / Python 3.6.0 or greater installed.

  2. Install Streamlit using PIP:

    $ pip install streamlit
    
  3. Run the hello world app:

    $ streamlit hello
    
  4. That’s it! In the next few seconds the sample app will open in a new tab in your default browser.

Get started

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.

Join the community

The quickest way to get help is to reach out on our community forum. We love to hear our users’ questions, ideas, and bugs — please share!