pypi streamlit 1.21.0

latest releases: 1.26.1, 1.38.0, 1.37.1...
18 months ago

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-only step parameter (#6071).
  • ❓ Most text elements can include tooltips with the help parameter (#6043).
  • ↔️ st.pyplot has a use_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 boolean line_numbers parameter (#5756, #6042).
  • βš“ Anchors in header elements can be turned off by setting anchor=False (#6158).

Other Changes

  • 🐼 st.table and st.dataframe support pandas.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 that st.file_uploader's File Selection Dialog only shows file types corresponding to those included in the type 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 mentions experimental_allow_widgets instead of the deprecated suppress_st_warning (#6216, #6217).

Don't miss a new streamlit release

NewReleases is sending notifications on new releases.