Version 1.53.0

Highlights

  • :snowflake: You can create session-scoped caller’s rights connections in Streamlit in Snowflake and other Snowpark Container Services environments.

  • :star: Announcing experimental support for running Streamlit with Starlette with the new server.useStarlette configuration option.

  • :globe_with_meridians: Introducing st.App, an experimental ASGI-compatible entry point that enables custom HTTP routes, middleware, lifecycle hooks, and integration with Python web frameworks like FastAPI and Starlette (#13537).

  • :key: You can expose OIDC ID and access tokens in st.user.tokens (#12044). Thanks, velochy!

To comment on the Starlette and ASGI support, see the discussion on GitHub.

Notable Changes

Other Changes

  • :electric_plug: You can exclude the port from your Streamlit auth redirect URI to use the current port (#12251, #12249). Thanks, velochy!

  • :name_badge: Various custom components v2 types were semantically renamed (#13515).

  • :scroll: When an item is removed from st.multiselect, the scroll position of the drop down is preserved (#13384, #13317). Thanks, kagawa0710!

  • :snake: Pydantic sequences are treated as dataframe-like by Streamlit commands (#13348, #13344).

  • :house: The logo displayed by st.logo links to the app’s homepage (#13222, #13155).

  • :keyboard: For improved accessibility, tooltips are keyboard focusable (#13379, #13330).

  • :anchor: For improved accessibility, anchor links are keyboard focusable (#13378, #13329).

  • :world_map: st.json displays a tooltip on hover for each element to show its full path (#13113, #13057).

  • :speech_balloon: st.chat_input was redesigned for improved style and accessibility (#13088, #13223, #13364, #13532, #13556, #13546, #13542, #13535, #13554, #13553, #13555, #13547).

  • :nail_polish: Various style updates for consistency (#13536, #13557).

  • :locked_with_key: st.auth is compatible with Authlib version 1.6.6 (#13333, #13335, #13424).

  • :alien: Bug fix: Embedded apps respect the theme embedding option when they are configured with a custom theme (#13498, #13496). Thanks, ranmocy!

  • :ghost: Bug fix: st.number_input accounts for floating point precision when incrementing and decrementing its value (#13484).

  • :crab: Bug fix: st.altair_chart correctly displays HConcat and VConcat charts (#13423, #13410).

  • :butterfly: Bug fix: st.selectbox is initialized correctly when its value is set from Session State (#13438, #13435).

  • :lizard: Bug fix: st.html indents list items correctly (#13437, #13426).

  • :snail: Bug fix: A logger message for SnowflakeConnection references the correct URL to the Snowflake docs (#13363, #13361).

  • :spider_web: Bug fix: Tooltip text with newlines renders correctly (#13365, #13339).

  • :cricket: Bug fix: The DOM elements within st.spinner are properly aligned when showing elapsed time (#13388, #13387).

  • :scorpion: Bug fix: Custom components v2 have the same cross-origin behavior as other elements in the app (#13376).

  • :mosquito: Bug fix: CSS custom properties in custom components handle null or unset values correctly (#13240).

  • :microbe: Bug fix: Theme preference is persisted into new app sessions (#13306, #13280).

  • :fly: Bug fix: st.dialog doesn’t show stale elements from a previous dialog (#13297, #10907).

  • :cockroach: Bug fix: st.data_editor behaves correctly when starting with a column of None values (#13309, #13305).

  • :spider: Bug fix: To correctly reflect edits to the theme configuration during development, theme settings are properly hashed (#13173).

  • :lady_beetle: Bug fix: In v2 custom components, app-level keyboard shortcuts (like R for rerun) are disabled in typing contexts to prevent unintentional usage (#13264).

  • :honeybee: Bug fix: Custom component v2 includes default values in component identity, unless a key is provided (#13266).

  • :ant: Bug fix: The sidebar navigation is correctly hidden when topbar navigation is used (#13227, #13224).

  • :beetle: Bug fix: st.logo displays the logo correctly when an app uses top navigation (#13226, #13225).

  • :bug: Bug fix: Error messages are clearer when width or height are invalidly set to 0 (#13206, #12868).

5 Likes