Highlights
- π Introducing
st.divider
β a command that displays a horizontal line in your app. Learn how to use this command in its API reference. - π Streamlit now supports the use of a global
secrets.toml
file, in addition to a project-level file, to easily store and securely access your secrets. Learn more in Secrets management. - π
st.help
has been revamped to show more information about object methods, attributes, classes, and more, which is great for debugging!
Notable Changes
- πͺ
st.time_input
supports adding a stepping interval with the keyword-onlystep
parameter (#6071). - β Most text elements can include tooltips with the
help
parameter (#6043). - βοΈ
st.pyplot
has ause_container_width
parameter to set the chart to the container width (now all chart elements support this parameter) (#6067). - π©βπ»
st.code
supports optionally displaying line numbers to the code blockβs left with the booleanline_numbers
parameter (#5756, #6042). - β Anchors in header elements can be turned off by setting
anchor=False
(#6158).
Other Changes
- πΌ
st.table
andst.dataframe
supportpandas.Period
, and number and boolean types in categorical columns (#2547, #5429, #5329, #6248). - πΈοΈ Added
.webp
to the list of allowed static file extensions (#6331) - π Bug fix: stop script execution on websocket close to immediately clear session information (#6166, #6204).
- π Bug fixes: updated allowed/disallowed label markdown behavior such that unsupported elements are unwrapped and only their children (text contents) render (#5872, #6036, #6054, #6163).
- πͺ² Bug fixes: donβt push browser history states on rerun, use HTTPS to load external resources in
streamlit hello
, and make the browser back button work for multipage apps (#5292, #6266, #6232). Thanks, whitphx! - π Bug fix: avoid showing emoji on non-UTF-8 terminals. (#2284, #6088). Thanks, kcarnold!
- π Bug fix: override default use of File System Access API for
react-dropzone
so thatst.file_uploader
's File Selection Dialog only shows file types corresponding to those included in thetype
parameter (#6176, #6315). - πΎ Bug fix: make the
.clear()
method on cache-decorated functions work (#6310, #6321). - π Bug fix:
st.experimental_get_query_params
doesnβt need reruns to work (#6347, #6348). Thanks, PaleNeutron! - π Bug fix:
CachedStFunctionWarning
mentionsexperimental_allow_widgets
instead of the deprecatedsuppress_st_warning
(#6216, #6217).