Plotly
Display an interactive Plotly chart.
python
st.plotly_chart(my_plotly_chart)
Bokeh
Display an interactive Bokeh chart.
python
st.bokeh_chart(my_bokeh_chart)
PyDeck
Display a chart using the PyDeck library.
python
st.pydeck_chart(my_pydeck_chart)
GraphViz
Display a graph using the dagre-d3 library.
python
st.graphviz_chart(my_graphviz_spec)
Input widgets
Button
Display a button widget.
python
clicked = st.button("Click me")
Download button
Display a download button widget.
python
st.download_button("Download file", file)
Checkbox
Display a checkbox widget.
python
selected = st.checkbox("I agree")
Radio
Display a radio button widget.
python
choice = st.radio("Pick one", ["cats", "dogs"])
Selectbox
Display a select widget.
python
choice = st.selectbox("Pick one", ["cats", "dogs"])
Multiselect
