Welcome to Streamlit :wave:

Documentation Status

The fastest way to build data apps.

Streamlit lets you create apps for your machine learning projects with deceptively simple Python scripts. It supports hot-reloading, so your app updates live as you edit and save your file. No need to mess with HTTP requests, HTML, JavaScript, etc. All you need is your favorite editor and a browser. Take a look at Streamlit in action:

Example of live coding a dashboard in Streamlit|635x380

Check out our launch blog post!!

Installation

1
2
pip install streamlit
streamlit hello

We also have suggestions for installing Streamlit in a virtual environment in Windows, Mac, and Linux.

Example

Streamlit lets you build interactive apps ridiculously easily:

1
2
3
4
import streamlit as st

x = st.slider('Select a value')
st.write(x, 'squared is', x * x)

1

A Bigger Example

Despite its simplicity Streamlit lets you build incredibly rich and powerful tools. This demo project lets you browse the entire Udacity self-driving-car dataset and run inference in real time using the YOLO object detection net.

Making-of Animation
Making-of Animation

The complete demo is implemented in less than 300 lines of Python. In fact, the app contains only 23 Streamlit calls which illustrates all the major building blocks of Streamlit. You can try it right now with:

1
2
pip install --upgrade streamlit opencv-python
streamlit run https://raw.githubusercontent.com/streamlit/demo-self-driving/master/app.py

More Information

Streamlit for Teams

Streamlit for Teams is our enterprise edition, with single-click deploy, authentication, web editing, versioning, and more. Please contact us if you would like to learn more.

Reference

1、 https://github.com/streamlit/streamlit
2、 Streamlit开发手册 http://cw.hubwiz.com/card/c/streamlit-manual/

打赏

微信 微信 支付宝 支付宝
万分感谢