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!
st.time_inputsupports adding a stepping interval with the keyword-only
Most text elements can include tooltips with the
use_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 boolean
line_numbersparameter (#5756, #6042).
Anchors in header elements can be turned off by setting
pandas.Period, and number and boolean types in categorical columns (#2547, #5429, #5329, #6248).
.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
st.file_uploader’s File Selection Dialog only shows file types corresponding to those included in the
typeparameter (#6176, #6315).
Bug fix: make the
.clear()method on cache-decorated functions work (#6310, #6321).
st.experimental_get_query_paramsdoesn’t need reruns to work (#6347, #6348). Thanks, PaleNeutron!
experimental_allow_widgetsinstead of the deprecated