Deprecation notice
st.bokeh_chart was deprecated in version 1.49.0 and removed in version 1.52.0. Use the streamlit-bokeh custom component instead.
Display an interactive Bokeh chart.
Bokeh is a charting library for Python. You can find more about Bokeh at https://bokeh.pydata.org.
Important
This command has been deprecated and removed. Please use our custom component, streamlit-bokeh, instead. Calling st.bokeh_chart will do nothing.
| Function signature[source] | |
|---|---|
st.bokeh_chart(figure, use_container_width=True) | |
| Parameters | |
figure (bokeh.plotting.figure.Figure) | A Bokeh figure to plot. |
use_container_width (bool) | Whether to override the figure's native width with the width of the parent container. If use_container_width is True (default), Streamlit sets the width of the figure to match the width of the parent container. If use_container_width is False, Streamlit sets the width of the chart to fit its contents according to the plotting library, up to the width of the parent container. |
Still have questions?
Our forums are full of helpful information and Streamlit experts.