Version 1.54.0

Notable Changes

  • :artist_palette: The color parameter of st.area_chart, st.bar_chart, st.line_chart, and st.scatter_chart supports the basic color palette which can be configured with theming (#13739, #12694).

  • :yin_yang: You can use the new theme.chartDivergingColors to set default diverging colors for Plotly, Altair, and Vega-Lite charts.

  • :link: You can configure the display of error help links with a new configuration option, client.showErrorLinks (#13472, #11238). Thanks, karubian!

  • :smiley: st.logo supports Material icons and emojis (#13416). Thanks, rahuld109!

  • :ninja: To prevent widgets from resetting when you change a parameter, widgets are transitioning to an identity based only on their keys (if provided). The following widgets use only their key for their identity:

    • st.dataframe (with selections)

    • st.area_chart

    • st.bar_chart

    • st.line_chart

    • st.scatter_chart

    • st.altair_chart

    • st.vegalite_chart

    • st.pydeck_chart

    • st.date_input

    • st.datetime_input

    • st.radio

    • st.select_slider

  • :backhand_index_pointing_up: ListColumn and MultiselectColumn let users select the text of their pills for copying (#13663).

  • :ghost: st.experimental_get_query_params and st.experimental_set_query_params have been removed. Use st.query_params instead.

  • :skull_and_crossbones: st.experimental_user has been removed. Use st.user instead.

Other Changes

  • :alien: The warning about the proposed removal of .add_rows() shows in the browser. Please leave feedback (#13063).

  • :lizard: When a .streamlit/config.toml file is created after a Streamlit app is running, the file watcher will recognize it without restarting the Streamlit server (#13625, #11296).

  • :locked_with_key: Bug fix: Path security validation improves protection against Server-Side Request Forgery (SSRF) and path traversal vulnerabilities (#13733).

  • :spider_web: Bug fix: Wildcard URLs display as localhost in the browser URL and console output (#13720, #13712).

  • :cricket: Bug fix: Modals and drop-down menus don’t collapse the sidebar (#13653).

  • :scorpion: Bug fix: st.bar_chart doesn’t raise a KeyError when sorting melted data (#13695).

  • :mosquito: Bug fix: st.multiselect and st.selectbox don’t clear state when a custom class object is selected (#13648, #13646).

  • :microbe: Bug fix: Transient nodes used for spinners will correctly anchor themselves in the Streamlit DOM to avoid an empty delta path (#13674).

  • :fly: Bug fix: Snowflake connections will re-initialize if closed (#13665).

  • :cockroach: Bug fix: Nested containers under a spinner don’t raise a Bad delta path index error (#13659, #13658).

  • :spider: Bug fix: SnowflakeConnection.query() correctly passes the params argument to caching (#13652, #13644).

  • :lady_beetle: Bug fix: client.toolbarMode="viewer" correctly hides developer options from the settings menu (#13623).

  • :honeybee: Bug fix: When using the experimental Starlette configuration, Streamlit auth can log users out of your identity provider and surface user tokens, consistent with recent updates (#13571).

  • :ant: Bug fix: Streamlit will defensively not load packaged components with missing or invalid component names in their manifests (#13612).

  • :beetle: Bug fix: The width of file chips in st.chat_input was increased to reduce filename truncation (#13589).

  • :bug: Bug fix: st.bar_chart doesn’t raise an error about y-axis minimum and maximum when the bars have all the same value (#13590, #13584).

1 Like