pip install streamlit
streamlit run your_script.py [-- script args]
// example
streamlit run app.py --server.port 8000
// Or run a remotely hosted script, example github gist:
streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.py
After running the script you will see a message like this:
You can now view your Streamlit app in your browser.
Local URL: http://localhost:4000
Network URL: http://xx.xx.xx.xx:4000
Anyone on the network, even with mobile phone, can view the app by accessing the network URL! The app is your canvas, where you'll draw charts, text, widgets, tables, and more.
On the web page launched, click 'always rerun' to get hot reloads.
st.write()
st.dataframe()
st.table()
st.metric()
st.json()
st.line_chart()
st.area_chart()
st.bar_chart()
st.pyplot()
st.altair_chart()
st.vega_lite_chart()
st.plotly_chart()
st.bokeh_chart()
st.pydeck_chart()
st.graphviz_chart()
st.map()
st.button()
st.download_button()
st.checkbox()
st.radio()
st.selectbox()
st.multiselect()
st.slider()
st.select_slider()
st.text_input()
st.number_input()
st.text_area()
st.date_input()
st.time_input()
st.file_uploader()
st.color_picker()
st.camera_input()
st.image()
st.audio()
st.video()
st.sidebar()
st.columns()
st.expander()
st.container()
st.empty()
st.progress()
st.spinner()
st.status()
st.toast()
st.balloons()
st.snow()
st.error()
st.warning()
st.info()
st.success()
st.exception()
st.stop()
st.form()
st.form_submit_button()
st.set_page_config()
st.echo()
st.help()
st.session_state
st.cache_data()
st.cache_resource()
st.add_rows()
st.experimental_rerun()
st.experimental_get_query_params()
st.experimental_set_query_params()