pypi streamlit 1.18.0

latest releases: 1.38.0, 1.37.1, 1.37.0...
19 months ago

Highlights

  • 🎊 Introducing @st.cache_data and @st.cache_resource β€” two new caching commands to replace st.cache! Check out our blog post and documentation for more information.

Notable Changes

  • πŸͺ† st.columns supports up to one level of column nesting (i.e., columns inside columns) in the main area of the app.
  • ⏳ st.progress supports adding a message to display above the progress bar with the text keyword parameter.
  • ↔️ st.button has an optional use_container_width parameter to allow you to stretch buttons across the full container width.
  • 🐍 We formally added support for Python 3.11.
  • πŸ–¨οΈ Save your app as a PDF via the β€œPrint” option in your app’s hamburger menu.
  • πŸ›ŽοΈ Apps can serve small, static media files via the enableStaticServing config option. See our documentation on how to use this feature and our demo app for an example.

Other Changes

  • 🏁 All Streamlit endpoints (including /healthz) have been renamed to have a consistent pattern and avoid any clashes with reserved endpoints of GCP (notably Cloud Run and App Engine) (#5534).
  • ⚑ Improved caching performance when multiple sessions access an uncomputed cached value simultaneously (#6017).
  • 🚧 Streamlit only displays deprecation warnings in the browser when the client.showErrorDetails config option is set to True. Deprecation warnings always get logged to the console, regardless of whether they're displayed in-browser (#5945).
  • πŸ“ Refactored the st.dataframe internals to improve dataframe handling and conversion, such as detecting more types, converting key-value dicts to dataframes, and more (#6026, #6023).
  • πŸ’½ The behavior of widget labels when they are passed unsupported Markdown elements is documented (#5978).
  • πŸ“Š Bug fix: Plotly improvements β€” upgraded multiple frontend dependencies, including Plotly, to the latest version to properly redraw cached charts, make Plotly mapbox animations work, and allow users to update the figure layout when using the Streamlit theme (#5885, #5967, #6055).
  • πŸ“Ά Bug fix: allow browser tabs that transiently disconnect (due to a network blip, load balancer timeout, etc.) to avoid losing all of their state (#5856).
  • πŸ“± Bug fix: the keyboard is hidden on mobile when st.selectbox and st.multiselect have less than 10 options (#5979).
  • 🐝 Bug fix: design tweaks to st.metric, st.multiselect, st.tabs , and menu items to prevent label overflow and scrolling issues, especially with small viewport sizes (#5933, #6034).
  • 🐞 Bug fix: switched to a functioning Twemoji URL from which page favicons are loaded in st.set_page_config (#5943).
  • ✍️ More type hints (#5986). Thanks, harahu!

Don't miss a new streamlit release

NewReleases is sending notifications on new releases.