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.tomlfile, in addition to a project-level file, to easily store and securely access your secrets. Learn more in Secrets management. -
st.helphas been revamped to show more information about object methods, attributes, classes, and more, which is great for debugging!
Notable Changes
-
st.time_inputsupports adding a stepping interval with the keyword-onlystepparameter (#6071). -
Most text elements can include tooltips with the helpparameter (#6043). - βοΈ
st.pyplothas ause_container_widthparameter to set the chart to the container width (now all chart elements support this parameter) (#6067). -
st.codesupports optionally displaying line numbers to the code blockβs left with the booleanline_numbersparameter (#5756, #6042). -
Anchors in header elements can be turned off by setting anchor=False(#6158).
Other Changes
-
st.tableandst.dataframesupportpandas.Period, and number and boolean types in categorical columns (#2547, #5429, #5329, #6248). -
Added .webpto 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-dropzoneso thatst.file_uploaderβs File Selection Dialog only shows file types corresponding to those included in thetypeparameter (#6176, #6315). -
Bug fix: make the .clear()method on cache-decorated functions work (#6310, #6321). -
Bug fix: st.experimental_get_query_paramsdoesnβt need reruns to work (#6347, #6348). Thanks, PaleNeutron! -
Bug fix: CachedStFunctionWarningmentionsexperimental_allow_widgetsinstead of the deprecatedsuppress_st_warning(#6216, #6217).