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).