Change8

1.46.0

Breaking Changes
📦 streamlitView on GitHub →
1 breaking46 features🐛 15 fixes🔧 6 symbols

Summary

This release adds extensive AdvancedLayouts width/height parameters, new theming options, and several UI enhancements, while fixing data editor issues and updating dependency constraints.

⚠️ Breaking Changes

  • Renamed backend base URL window variables to use __streamlit object; update any custom JavaScript that referenced the old window variables to the new __streamlit names.

Migration Steps

  1. Update any custom JavaScript that accessed the old backend base URL window variables to use the new __streamlit object.
  2. Ensure your environment uses tornado version lower than 6.5.0 (e.g., pip install "tornado<6.5.0").

✨ New Features

  • Add stack trace info to missing label warning.
  • Add server.FolderWatchList to CLI and LocalSourcesWatcher.
  • AdvancedLayouts: add a width parameter to st.code.
  • AdvancedLayouts: add a width parameter to st.json.
  • AdvancedLayouts: add a width parameter to st.help.
  • AdvancedLayouts: add a width parameter to st.progress.
  • AdvancedLayouts: add a width parameter to st.audio_input.
  • AdvancedLayouts: add a width parameter to st.slider and st.select_slider.
  • AdvancedLayouts: add a width parameter to st.camera_input and st.file_uploader.
  • AdvancedLayouts: add a width parameter to st.text_input and st.text_area.
  • AdvancedLayouts: add a width parameter to st.number_input and st.selectbox.
  • AdvancedLayouts: add a width parameter to st.date_input and st.time_input.
  • Allow nesting of expander, columns, popover and chat_message.
  • Warn when modifying elements inside a fragment callback.
  • Make Carto the default map provider (like in PyDeck).
  • Remove set_page_config restrictions.
  • AdvancedLayouts: add a width parameter to st.chat_input and st.chat_message.
  • Add st.column(gap="none").
  • AdvancedLayouts: add a width parameter to st.video and st.audio.
  • Add a new config option to configure a CORS allowlist.
  • Extend height parameter on st.code to support new options.
  • Fix StreamlitDuplicateElementId when the same widget appears in both main and sidebar areas.
  • AdvancedLayouts: add a width parameter to st.latex and st.divider.
  • Serve manifest.json from static asset handler.
  • Always show dataframe row selection checkboxes.
  • AdvancedLayouts: add a width parameter to st.tabs and st.expander.
  • AdvancedLayouts: add a width parameter to st.status.
  • AdvancedLayouts: add width and height parameters to st.form.
  • Add buttonRadius theming config option.
  • Rename backend base URL window variables to use __streamlit object.
  • Small improvements to Streamlit Hello.
  • Change to use None instead of "none" for column gap size.
  • Add dataframeBorderColor theming config option.
  • Add support for config & secret files on main‑script level.
  • AdvancedLayouts: add a width parameter to st.text.
  • AdvancedLayouts: add a width parameter to st.metric.
  • AdvancedLayouts: add a width parameter to st.color_picker.
  • AdvancedLayouts: add a width parameter to st.title, st.subheader, and st.header.
  • AdvancedLayouts: add a width parameter to st.toggle and st.checkbox.
  • Add button for copying exception messages.
  • AdvancedLayouts: add a width parameter to st.radio.
  • AdvancedLayouts: add a width parameter to st.spinner.
  • Fully support weight and unicode-range in @font-face declarations.
  • Add Japanese yen as a NumberColumn and ProgressColumn format option.
  • AdvancedLayouts: add a width parameter to st.caption, st.markdown and st.badge.
  • Add st.navigation(position='top').

🐛 Bug Fixes

  • Fix data editor when adding and deleting rows.
  • Fix content alignment for dataframe columns.
  • Ensure script lifecycle occurs for MPAv1 use case.
  • Normalize filename extension check.
  • Allow case‑sensitive options in select and multiselect widgets.
  • Handle visual glitch for duplicated options.
  • Provide more predictable fuzzy matching for select widgets.
  • Scroll long LaTeX formulas horizontally.
  • Add safeguard for cached messages cleanup.
  • Update st.column_config \"localized\" option.
  • st.dataframe: clear row selections on dropdown sort.
  • Exclude tornado 6.5.0 version from dependencies.
  • Add rows preserves styling properties in data editor.
  • Fix crash when editing dataframe index with data editor.
  • Tweak markdown styling for task lists and blockquotes.

🔧 Affected Symbols

set_page_configst.column_configst.dataframest.columnst.navigation__streamlit (window variables)