Migrating to Streamlit 1.48.0
Version 1.48.0 introduces 1 breaking change. This guide details how to update your code.
Released: 8/5/2025
1
Breaking Changes
6
Migration Steps
19
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
st.containerst.columnsst.popoverst.buttonst.expanderst.statusst.dialogst.sliderst.feedbackst.line_chartst.helpst.logoutcodeFontWeightst.sidebarst.date_inputst.pillsst.segmented_controlst.top_navigationst.scrollbarBreaking Changes
●Issue #1
Added width/height parameters to st.container and st.columns, which may break existing code that relied on the previous signatures. Update calls to include the new parameters or adjust usage.
Migration Steps
- 1Update any calls to st.container and st.columns to accommodate the new width and height parameters.
- 2If you use st.popover or button elements, add the new width parameter where appropriate.
- 3Review layout code that relies on default container alignment; the new direction, gap, and alignment options may affect layout.
- 4Ensure your Altair version is not 5.4.0 or 5.4.1; downgrade or upgrade to a compatible version as specified in the updated constraints.
- 5If you rely on the previous behavior of st.help header colors, note the change to use bgMix.
- 6Adjust any custom toolbar implementations to account for the MINIMAL mode menu item visibility fix.
Release Summary
Streamlit 1.48.0 introduces extensive layout enhancements and new UI designs, while fixing numerous bugs and updating Altair constraints; developers should adjust to the new width/height parameters in layout APIs.
Need More Details?
View the full release notes and all changes for Streamlit 1.48.0.
View Full Changelog