Release notes

This page lists highlights, bug fixes, and known issues for official Streamlit releases. If you're looking for information about nightly releases, beta features, or experimental features, see Try pre-release features.

star

Tip

To upgrade to the latest version of Streamlit, run:

pip install --upgrade streamlit

Release date: May 2, 2024

Highlights

  • 🍿 Introducing st.experimental_dialog! Create a modal overlay that can also rerun independently from the rest of your app. Check out the docs to learn how.

Notable Changes

Other Changes

  • 🔲 Streamlit supports Modin and Snowpark pandas DataFrames and Series (#8506).
  • ⏱️ Improved support for period data types in st.dataframe and st.data_editor (#7987).
  • 🗺️ Streamlit supports using pydeck-carto with st.pydeck_chart (#8422).
  • ❄️ Additional snowflake requirements were updated to allow Python versions 3.8 to 3.11 (#8538).
  • 🍞 st.toast received visual improvements and now appears in the top right (#8433).
  • 🦋 Visual tweaks for dialogs and modals.
  • 🦀 Bug fix: st.write_stream returns an empty string when passed a generator with no yield (#8560).
  • 🦎 Bug fix: Widgets that support None values can be correctly set to None through Session State (#8529, #7649).
  • 🐌 Bug fix: If the initial value for st.date_input is not set and today’s date falls outside the declared minimum or maximum, then the minimum or maximum will be used instead, whichever is closer (#8519, #6167).
  • 🕸️ Bug fix: Altair’s resolve_scale method is handled correctly (#8497, #1667).
  • 🦗 Bug fix: st.multiselects correctly handles sets when passed to options or default (#8471, #8466).
  • 🦂 Bug fix: st.status does not show the expander toggle when empty (#8369).
  • 🦟 Bug fix: The width of vconcat charts in Vega and Altair is set correctly (#8498, #2751).
  • 🦠 Bug fix: Apps print beautifully and no longer show excessive whitespace (#8502, #7815).
  • 🪰 Bug fix: Invalid escape sequences were removed to avoid warnings from pytest (#8510, #8501).
  • 🪳 Bug fix: st.file_uploader callback is correctly executed once per file selection after the first selection (#8493, #4877).
  • 🕷️ Bug fix: Streamlit is compatible down to pillow version 7.1.0 instead of 9.1.0 (#8492, #8486).
  • 🐞 Bug fix: Widget values are correctly dropped when a script run is interrupted by switching pages (#8425, #7338).
  • 🐝 Bug fix: Apps in dark mode will return to dark mode after printing (#8469, #7879).
  • 🐜 Bug fix: Component ready state is dynamic to avoid race conditions that caused blank apps in Safari (#8434, #8362).
  • 🪲 Bug fix: st.slider yields a Python error when min_value is less than or equal to max_value (#8413, #8342).
  • 🐛 Bug fix: Time is offset correctly for Vega and Altair (#8278, #4342).

Release date: April 4, 2024

Highlights

  • 👟 Introducing st.experimental_fragment to decorate functions and rerun them independently of the whole page. Check out the docs and give your apps a speed boost!
  • 🌐 Introducing st.html to insert custom HTML into your app! Check out the docs for how to use it.

Notable Changes

Other Changes

  • 🖱️Users can click on the widget label to focus on input for st.number_input, st.text_input, and st.text_area (#8155). Thanks, filiptammergard!
  • ⬆️ Streamlit supports packaging version 24.x (#8338, #8328).
  • 🕸️ Bug fix: Streamlit now watches for changes to imported modules in addition to pages (#8372). Thanks, zyxue!
  • 🦗 Bug fix: Overflowing toast messages are correctly truncated (#8337, #8330).
  • 🦂 Bug fix: st.status correctly updates to complete when using LangChain's StreamlitCallbackHandler (#8331).
  • 🦟 Bug fix: Custom components no longer show white backgrounds in dark themes (#8242, #8156, #7813).
  • 🦠 Bug fix: Content area width is reduced when a fullscreen icon would otherwise cause horizontal overflow (#8279, #6990).
  • 🪰 Bug fix: Custom components with undefined frame heights will render with a height of 0 (#8290, #8285).
  • 🪳 Bug fix: Restored a check for active sessions to prevent apps from needlessly running when no users are connected (#8294).
  • 🕷️ Bug fix: Custom themes have precedence over embedding options (#8021, #7118).
  • 🐞 Bug fix: Reverted the async timer to expire session storage cache to address computational efficiency (#8281).
  • 🐝 Bug fix: When using st.popover with use_container_width=True, the popover container's minimum width will match the popover button (#8266, #8261).
  • 🐜 Bug fix: Using st.rerun with a triggering widget in AppTest no longer creates an infinite loop (#8264, #7768).
  • 🪲 Bug fix: URLs are correctly decoded in LinkColumn if regex is used or if not using fully qualified URLs (#8258, #7064).
  • 🐛 Bug fix: st.query_params only sends one ForwardMsg when updating multiple parameters (#8205, #8199). Thanks, Asaurus1!

Release date: March 7, 2024

Highlights

  • 🍿 Introducing st.popover to create popover elements in your Streamlit apps. Check out the docs to see how to use it!

Notable Changes

  • 📺 You can now pass subtitles to st.video! Check out our feature demo.
  • ⚗️ AppTest includes support for st.expander and st.status.
  • 🧪 AppTest.from_function accepts a function that takes arguments and/or returns a value.
  • 🧩 The timeout warning for custom components was replaced with an element skeleton to improve the UX for slow-loading components, especially in some cloud-hosted platforms (#8179, #7046).
  • 📄 st.switch_page and st.page_link received significant improvements to path handling, performance, and visual appearance (see below for details).
  • 🦀 Bug fix: Streamlit uses glide-data-grid version 6.0.4 to fix a variety of dataframe issues (#7779, #6900, #7032, #7727, #6810, #7930, #7949, #7831, #8168).
  • 💦 Bug fix: We've plugged a significant memory leak in the coroutine loop. Apps that generate a large number of small messages between client and server will benefit greatly (#8068, #7989, #6510).

Other Changes

  • 💪 Multiple modules are now lazy-loaded to speed up Streamlit's import time (#8150, #8143, #8134, #8113, #8125, #8111, #8109, #6066).
  • 🖼️ st.write supports PIL images (#8039).
  • 🔗 st.radio allows markdown links within the items passed to options (#8028, #7992).
  • 💀 The deprecation.showPyplotGlobalUse config option is deprecated and will be removed in the subsequent release (#8133).
  • 🤖 Streamlit supports AzureOpenAI chat stream (#8107, #8084).
  • 🌐 The /healthz endpoint supports the HTTP HEAD method (#8145, #8144). Thanks, rahulmistri1997!
  • 🌀 The cache parameter for st.spinner is now private (_cache) since it's for internal use (#8118).
  • 🏃 Session storage is checked and expired asynchronously to improve performance and efficiency of apps with lower traffic (#8083).
  • 🐜 st.write_stream raises a descriptive Exception when the message cannot be parsed (#8036).
  • 📘 Fixed a typo in the examples for st.switch_page and st.page_link (#8162). Thanks, t1emp0!
  • 👻 Bug fix: st.help correctly displays conditional members (#8228).
  • 🦋 Bug fix: App State fully clears on page change to prevent lingering stale elements (#8208).
  • 🦎 Bug fix: st.info, st.success, st.warning, and st.error don't overflow with long markdown strings (#8194, #6394).
  • 🐌 Bug fix: Streamlit shows a warning that port 3000 is reserved for development when the server port is set to 3000 (#8152, #8149).
  • 🕸️ Bug fix: st.page_link and st.switch_page have improved path calculation for consistency (#8127).
  • 🦗 Bug fix: st.page_link shows the correct path in browser on hover (#8086, #8080).
  • 🦂 Bug fix: st.page_link and st.switch_page normalize paths for correct handling in Windows (#8103, #8070).
  • 🦟 Bug fix: Script runner uses a while loop instead of recursion to avoid stack overflows (#8100).
  • 🦠 Bug fix: st.page_link and st.switch_page correctly handle relative paths prefixed with "/" (#8085, #8081).
  • 🪰 Bug fix: st.image parses paths in Windows correctly (#8092, #7271, #6066).
  • 🪳 Bug fix: st.switch_page no longer waits for the current page to finish running before switching pages (#8054, #7954).
  • 🕷️ Bug fix: st.map and other simple charts correctly handle color when data is not indexed starting from 0 (#8158, #8079, #8077). Thanks, awhazell!
  • 🐞 Bug fix: st.selectbox, st.multiselect, st.select_slider, and st.radio use shallow copies of their options to prevent unexpected mutations (#8064, #7534).
  • 🐝 Bug fix: The selected time in st.time_input displays correctly in dark mode (#8056, #7436).
  • 🪲 Bug fix: Dataframe scrollbars display correctly in the latest version of Chrome (#8034).
  • 🐛 Bug fix: Casting st.query_params to str will print the content of the query parameters instead of the class description (#8030).

Release date: February 1, 2024

Release videos

Highlights

  • 🔗 Introducing st.page_link! Now, you can build custom navigation menus for your multipage apps. Check out our docs to see how.
  • 💦 Announcing st.write_stream to conveniently handle generators and streamed responses. Check out our docs to see how making chat apps just got easier.

Notable Changes

  • 📝 st.chat_input can be used inline and placed anywhere in the app. You can also have multiple st.chat_input widgets on a page (#7896).

Other Changes

  • 🧹 Internal refactoring and cleanup (#7980). Thanks, whitphx!
  • ❄️ Bug fix: Snowpark is now an optional dependency for SnowflakeConnection (#7919).
  • 🕷️ Bug fix: The watchdog suggestion is disabled when server.fileWatcherType is set to none or poll (#8024, #7999).
  • 🐞 Bug fix: Required columns can be hidden when not using st.data_editor with dynamic rows (#7996, #7991).
  • 🐝 Bug fix: New period types are supported for pandas 2.2.0 (#7988).
  • 🐜 Bug fix: Custom components receive only the app's origin and path to avoid reloading components when query parameters change (#7951, #7503). Thanks, eric-skydio!
  • 🪲 Bug fix: st.progress won't raise an exception when given a value above 1.0 due to float precision (#7953, #5517). Thanks, notiona!
  • 📚 Streamlit supportsimportlib-metadata version 7 (#7925). Thanks, elgalu!
  • 🐛 Bug fix: AppTest correctly sees widgets inside containers (#7923, #7711).
  • 💿 Custom components no longer accumulate style elements when re-rendered for better performance (#7914). Thanks, Tom-Julux!

Release date: January 11, 2024

Release videos

Highlights

  • 🔄 Announcing st.switch_page to programmatically switch pages in multipage apps! Check out our docs to learn about this highly anticipated feature!
  • ❓Introducing st.query_params to handle variables passed through your app's URL. Check out our docs to understand this feature and how it's been upgraded and improved from our experimental version!

Notable Changes

  • 📐 st.container can be configured with a height to create grids or scrolling containers (#7697, #2169, #2447).
  • 🔗 For dataframes, LinkColumn has a simplified UI and can be configured with display text, including programmatically defined text through regular expressions (#7784, #7741, #6787).
  • 🧭 Sidebar navigation for multipage apps can be hidden via configuration (#7852).
  • ⏩ Plotly figures can load even faster when used in combination with orjson (#7860). Thanks, eric-skydio!
  • ♻️ Behavior change: Query parameters are removed when changing pages (#7817#6725#5505).

Other Changes

  • 🛠️ showFooter is no longer an embed option since the footer no longer exists (#7902, #7785).
  • 🕵️ All security concerns should be reported through HackerOne (#7783).
  • 🕷️ Bug fix: Tabs are not disabled when stale to prevent flickering (#7905, #7820).
  • 🛡️ Bug fix: The full file path is used instead of a prefix to prevent custom components from reaching beyond their own folders (#7901).
  • 🪱 Bug fix: Widgets raise an exception if its values aren't Python comparable (#7840, #3714).
  • 🐞 Bug fix: The down-arrow icons on expanders maintain a consistent size (#7596). Thanks, matiboux!
  • 🐝 Bug fix: Tabs no longer flicker when switching between them (#7904).
  • 🐜 Bug fix: Enter-to-submit is automatically disabled when the associated st.form_submit_button is disabled (#7827, #7822).
  • 🪲 Bug fix: Required columns cannot be hidden with column configuration (#7888, #7559).
  • 🐛 Bug fix: Using nan as a value in SelectboxColumn will raise an error instead of silently failing (#7887, #7558).
  • 🌙 Bug fix: Custom component iframes allow dark mode (#7821, #7813).
  • 🪰 Bug fix: The command to start Streamlit is not sent to the frontend (#7787).
  • 💅 Bug fix: The background color of st.toggle is enhanced for better visibility (#7788).
  • 🪳 Bug fix: Built-in charts can handle ordered categorical columns (#7771, #7776).

Release date: November 30, 2023

Highlights

  • 🔲 st.container and st.form now have a border parameter to show or hide a border.
  • 🐍 Streamlit supports Python 3.12!

Notable Changes

  • st.dataframe, st.data_editor, and st.table support datetime.timedelta values (#7689, #4489).
  • 💀 Streamlit apps preload skeleton elements for a smoother appearance when initializing (#7598).
  • 🏃 Reduced the overhead of running AppTest-simulated apps, especially for fast-running apps (#7691).
  • 🛁 String representations of AppTest data are improved for a better testing and debugging experience (#7658).
  • 🔢 Apps can be configured to identify Enum classes as the same if they have matching member names (#7408, #4909). Thanks, Asaurus1!
  • ❌ The "Made with Streamlit" footer no longer appears at the bottom of apps (#7583).
  • 🧹 Unused config options have been deprecated (#7584).
  • 🕳️ Query parameters can be empty (#7601, #7416).
  • 💅 Visual tweaks (#7592, #7630).

Other Changes

  • 🦗 Bug fix: Convert floats to bytes instead of hashing to avoid hashing instability (#7754). Thanks, BlackHC!
  • 🦎 Bug fix: Corrected broken URLs and typos in error messages (#7746, #7764, #7770). Thanks, ObservedObserver!
  • 🐌 Bug fix: st.connection correctly caches results when using two connections of the same type (#7730, #7709).
  • 🕸️ Bug fix: Using context managers with multithreading now displays content in the expected order (#7715, #7668). Thanks, eric-skydio!
  • 🦂 Bug fix: Added https fallback when obtaining the host machine's address (#7712, #7703). Thanks, LarsHill!
  • 🛡️ Bug fix: Added security patch for pyarrow vulnerability. Custom components using pyarrow table deserialization should require pyarrow>=14.0.1 (#7695, #7700).
  • 🦟 Bug fix: Improved typing for st.connection (#7671). Thanks, thezanke!
  • 🪰 Bug fix: Retries of SnowflakeConnection methods are narrowed to only occur with transient errors to avoid unnecessary repeated errors (#7645, #7637).
  • 🏗️ Removed the v0 testing framework which was undocumented (#7657).
  • 🪳 Bug fix: The navigation expander arrow no longer disappears (#7634, #7547).
  • ❄️ Improved the error message for SnowflakeConnection when a configuration is not found (#7652).
  • 🕷️ Bug fix: st.rerun no longer causes a RecursionError when used with st.chat_input (#7643, #7629).
  • 🐞 Bug fix: st.file_uploader no longer causes an extra rerun and therefore doesn't conflict with st.chat_input (#7641, #7556).
  • 🐝 Bug fix: AppTest no longer raises an error when encountering st.container (#7644, #7636).
  • 🪲 Bug fix: Graphviz charts scale correctly when exiting fullscreen view (#7398, #7527).
  • 🎥 Bug fix: "Record a screencast" is hidden when known to be unsupported in a browser (#7604).
  • 🐛 Bug fix: Increased the top padding of embedded apps to better display the dataframe toolbar (#7681, #7609, #7607).
  • 🐜 Bug fix: st.rerun uses NoReturn for improved type checking (#7422) Thanks, kongzii.

Release date: October 26, 2023

Release videos

Highlights

  • 🧪 Introducing a new testing framework for Streamlit apps! Check out our documentation to learn how to build automated tests for your apps.
  • 💻 Announcing the general availability of st.connection, a command to conveniently manage connections in Streamlit apps. Check out the docs to learn more.
  • ❄️ SnowparkConnection has been upgraded to the new and improved SnowflakeConnection — the same, great functionality plus more! Check out our built-in connections.
  • 🛠️ st.dataframe and st.data_editor have a new toolbar! Users can search and download data in addition to enjoying improved UI for row additions and deletions. See our updated guide on Dataframes.

Notable Changes

  • 🌀 When using a spinner with cached functions, the spinner will be overlaid instead of pushing content down (#7488).
  • 📅 st.data_editor now supports datetime index editing (#7483).
  • 🔢 Improved support for decimal.Decimal in st.dataframe and st.data_editor (#7475).
  • 🥸 Global kwargs were added for hashlib (#7527, #7526). Thanks, DueViktor!
  • 📋 st.components.v1.iframe now permits writing to clipboard (#7487). Thanks, dilipthakkar!
  • 📝 SafeSessionState disconnect was replaced with script runner yield points for improved efficiency and clarity (#7373).
  • 🤖 The Langchain callback handler will show the full input string inside the body of a st.status when the input string is too long to show as a label (#7478). Thanks, pokidyshev!
  • 📈 st.graphviz_chart now supports using different Graphviz layout engines (#7505, #4089).
  • 🦋 Assorted visual tweaks (#7486, #7592).
  • 📊 plotly.js was upgraded to version 2.26.1 (#7449, #7476, #7045).
  • 💽 Legacy serialization for DataFrames was removed. All DataFrames will be serialized by Apache Arrow (#7429).
  • 🖼️ Compatibility for Pillow 10.x was added (#7442).
  • 📬 Migrated _stcore/allowed-message-origins endpoint to _stcore/host-config (#7342).
  • 💬 Added post_parent_message platform command to send custom messages from a Streamlit app to its parent window (#7522).

Other Changes

  • ⌨️ Improved string dtype handling for DataFrames (#7479).
  • ✒️ st.write will avoid using unsafe_allow_html=True if possible (#7432).
  • 🐛 Bug fix: Implementation of st.expander was simplified for improved behavior and consistency (#7247, #2839, #4111, #4651, #5604).
  • 🪲 Bug fix: Multipage links in the sidebar are now aligned with other sidebar elements (#7531).
  • 🐜 Bug fix: st.chat_input won't incorrectly prompt for label parameter in IDEs (#7560).
  • 🐝 Bug fix: Scroll bars correctly overlay st.dataframe and st.data_editor without adding empty space (#7090, #6888).
  • 🐞 Bug fix: st.chat_message behaves correctly with the removal of AutoSizer (#7504, #7473).
  • 🕷️ Bug fix: Anchor links are reliably produced for non-English headers (#7454, #5291).
  • ☃️ Bug fix: st.connections.SnowparkConnection more accurately detects when it's running within Streamlit in Snowflake (#7502).
  • 🪳 Bug fix: A user-friendly warning is shown when exceeding the size limitations of a pandas Styler object (#7497, #5953).
  • 🪰 Bug fix: st.data_editor automatically converts non-string column names to strings (#7485, #6950).
  • 🦠 Bug fix: st.data_editor correctly identifies non-range indices as a required column (#7481, #6995).
  • 🦟 Bug fix: st.file_uploader displays compound file extensions like csv.gz correctly (#7362). Thanks, mo42!
  • 🦂 Bug fix: Column Configuration no longer uses deprecated type checks (#7496, #7477, #7550). Thanks, c-bik!
  • 🦗 Bug fix: Additional toolbar items no longer stack vertically (#7470, #7471).
  • 🕸️ Bug fix: Column Configuration no longer causes a type warning in Mypy (#7457). Thanks, kopp!
  • 🐌 Bug fix: Bokeh Sliders no longer cause JavaScript errors (#7441, #7171).
  • 🦎 Bug fix: Caching now recognizes DataFrames with the same values but different column names as different (#7331, #7086).

Release date: September 21, 2023

Highlights

  • ✨ Introducing st.scatter_chart — a new, simple chart element to build scatter charts Streamlit-y fast and easy! See our documentation.
  • 🔗 Introducing st.link_button! Want to open an external link in a new tab with a bit more pizazz than a plain-text link? Check out our documentation to see how.
  • 🏃 Announcing the general availability of st.rerun, a command to interrupt your script and trigger an immediate rerun.

Notable Changes

Other Changes

  • 🐛 Bug fix: st.multiselect now shows a correct message when no result matches a user's search (#7205, #7116).
  • 🪲 Bug fix: st.experimental_user now defaults to test@example.com (#7219, #7215).
  • 🐜 Bug fix: st.slider labels don't overlap when small ranges are selected (#7221, #3385).
  • 🐝 Bug fix: Type-checking correctly identifies all string types to avoid hashing errors (#7255, #6455).
  • 🐞 Bug fix: JSON is parsed with JSON5 to avoid errors from null values when using st.pydeck_chart (#7256, #5799).
  • 🕷️ Bug fix: Identical widgets on different pages are correctly interpreted by Streamlit as distinct (#7264, #6146).
  • 🦋 Bug fix: Visual tweaks to widgets for responsive behavior (#7145).
  • 🪳 Bug fix: SVGs are accurately displayed (#7183, #3882).
  • 🪰 Bug fix: st.video correctly updates with changes to start_time (#7257, #7126).
  • 🦠 Bug fix: Additional error handling was added to st.session_state (#7280, #7206).
  • 🦟 Bug fix: st.map correctly refreshes with new data (#7307, #7294).
  • 🦂 Bug fix: The decorative app header line is no longer covered by the sidebar (#7297, #6264).
  • 🦗 Bug fix: st.code no longer triggers a CachedStFunctionWarning (#7306, #7055).
  • 🕸️ Bug fix: st.download_button no longer resets with different data (#7316, #7308).
  • 🐌 Bug fix: Widgets consistently recognize user interaction while a page is still running, with or without fastRerun enabled (#7283, #6643).
  • 🦎 Bug fix: st.tabs was improved to better handle and render conditionally appearing tabs (#7287, #7310, #5454, #7040).

Release date: August 24, 2023

Highlights

  • 🤖 Introducing st.status to display output from long-running processes and external API calls (#7140). Works great with st.chat_message! See our documentation for how to use this feature.
  • 🚥 Introducing st.toggle — an alternative to st.checkbox when you need an on/off switch.

Notable Changes

Other Changes

  • 🍞 Bug fix: Toast messages are no longer blocked by st.chat_input (#7204, #7115).
  • 🕸️ Bug fix: Widget IDs are now stable to prevent inconsistent statefulness (#7003).
  • 🦟 Bug fix: Browser autofill is correctly recognized within forms now (#7150, #7101, #7084).
  • 🪱 Bug fix: st.file_uploader no longer causes session state to reset when a websocket connection is dropped and reconnected (#7149, #7025).
  • 🏎️ Bug fix: Pydeck JSON data is cached for improved performance (#7113, #5532).
  • 🦋 Bug fix: st.chat_input no longer submits prematurely while typing with an input method editor (#6993).
  • 🐞 Bug fix: Label backgrounds for st.tabs are now transparent (#7070, #5707).
  • 🐝 Bug fix: Page width is no longer ignored when using the help parameter in st.button (#7033, #6161).
  • 🐜 Bug fix: Tweaked Altair color specification for improved visibility in dark mode (#7061, #3343).
  • 🪲 Bug fix: st.chat_message can correctly use local images as avatars (#7130).
  • 🐛 Bug fix: Specified that MD5 is not used for security (#7122, #7120).
  • 🪄 Bug fix: Async function docstrings are ignored by Streamlit magic (#7143, #7137).

Release date: July 20, 2023

Highlights

  • 🍞 Introducing st.toast — a command to briefly show toast messages to users in the bottom-right corner of apps. See our documentation on how to use this feature.

Notable Changes

  • 🗺️ st.map now has parameters for latitude, longitude, color, and size to customize data points (#6896).
  • 🚩 st.multiselect supports setting placeholders and specifying the maximum number of selections via the placeholder and max_selections keyword-only arguments, respectively (#6901, #4750). Thanks, @fhiroki!
  • 📅 Customize the date format for st.date_input with the format parameter (#6974, #5234).
  • ↩️ Forms can now be submitted with Enter/Return while inside st.text_input, st.number_input, or st.text_area (#6911, #3790).
  • 🍢 The app menu icon in the upper-right corner of apps has been changed from "" to "" (#6947).

Other Changes

  • ⛓️ Minimum required versions increased for multiple Python dependencies, including numpy>=1.19.3 and pandas>=1.3.0 (#6802).
  • 🛡️ protobufjs was bumped from 7.2.1 to 7.2.4 (#6959).
  • ✨ Visual design tweaks to Streamlit's input widgets (#6944).
  • 🦋 Bug Fix: st.slider now accepts general number types like numpy.int64 instead of just int and float (#6816, #6815). Thanks, @milliams!
  • 🐜 Bug Fix: Data labels for st.slider and st.select_slider no longer overflow when inside st.expander (#6828, #6297).
  • 🐛 Bug Fix: Elements no longer re-render from scratch with each rerun (#6923, #6920).
  • 🐞 Bug Fix: st.data_editor hashes styler objects correctly for stability across reruns (#6815, #6898).
  • 🐝 Bug Fix: Fixed the padding for embedded apps using st.chat_input to prevent messages being cutoff (#6979).

Release date: June 27, 2023

Highlights

  • 💬 Introducing st.chat_message and st.chat_input — two new chat elements that let you build conversational apps. Learn how to use these features in your LLM-powered chat apps in our tutorial.
  • 💾 Streamlit's caching decorators now allow you to customize Streamlit's hashing of input parameters with the keyword-only argument hash_funcs.

Notable Changes

  • 🐍 We've deprecated support for Python 3.7 in the core library and Streamlit Community Cloud (#6868).
  • 📅 st.cache_data and st.cache_resource can hash timezone-aware datetime objects (#6812, #6690, #5110).

Other Changes

  • ✨ Visual design tweaks to Streamlit's input widgets (#6817).
  • 🐛 Bug fix: st.write pretty-prints dataclasses using st.help (#6750).
  • 🪲 Bug fix: st.button's height is consistent with that of other widgets (#6738).
  • 🐜 Bug fix: Upgraded the react-range frontend dependency to fix the memory usage of sliders (#6764, #5436). Thanks @wolfd!
  • 🐝 Bug fix: Pydantic validators no longer result in exceptions on app reruns (#6664, #3218).
  • 🐞 Bug fix: streamlit config show honors newlines (#6758, #2868).
  • 🪰 Bug fix: Fixed a race condition to ensure Streamlit reruns the latest code when the file changes (#6884).
  • 🦋 Bug fix: Apps no longer rerun when users click anchor links (#6834, #6500).
  • 🕸️ Bug fix: Added robust out-of-bounds checks for min_value and max_value in st.number_input (#6847, #6797).

Release date: June 1, 2023

Highlights

  • ✂️ Announcing the general availability of st.data_editor, a widget that allows you to edit DataFrames and many other data structures in a table-like UI. Breaking change: the data editor's representation used in st.session_state was altered. Find out more about the new format in Access edited data.
  • ⚙️ Introducing the Column configuration API with a suite of methods to configure the display and editing behavior of st.dataframe and st.data_editor columns (e.g. their title, visibility, type, or format). Keep an eye out for a detailed blog post and in-depth documentation upcoming in the next two weeks.
  • 🔌 Learn to use st.experimental_connection to create and manage data connections in your apps with the new Connecting to data docs and video tutorial.

Notable Changes

  • 📊 Streamlit now supports Protobuf 4 and Altair 5 (#6215, #6618, #5626, #6622).
  • ☎️ st.dataframe and st.data_editor can hide index columns with hide_index, specify the display order of columns with column_order, and disable editing for individual columns with the disabled parameter.
  • ⏱️ The ttl parameter in st.cache_data and st.cache_resource accepts formatted strings, so you can simply say ttl="30d", ttl="1h30m" and any other combination of w, d, h, m, s supported by Pandas's Timedelta constructor (#6560).
  • 📂 st.file_uploader now interprets the type parameter more accurately. For example, "jpg" or ".jpg" now accept both "jpg" and "jpeg" extensions. This functionality has also been extended to "mpeg/mpg", "tiff/tif", "html/htm", and "mpeg4/mp4".
  • 🤫 The new global.disableWidgetStateDuplicationWarning configuration option allows the silencing of warnings triggered by setting widget default values and keyed session state values concurrently (#3605, #6640). Thanks, @antonAce!

Other Changes

  • 🏃‍♀️Improved startup time by lazy loading some dependencies (#6531).
  • 👋 Removed st.beta_* and st.experimental_show due to deprecation and low-use (#6558)
  • 🚀 Further improvements to st.dataframe and st.data_editor:
    • Improved editing on mobile devices for the data editor (#6548).
    • All editable columns have an icon in their column header and support tooltips (#6550, #6561).
    • Enable editing for columns containing datetime, date, or time values (#6025).
    • New input validation options for columns in the data editor, such as max_chars and validate for text columns, and min_value, max_value and step for number columns (#6563).
    • Improved type parsing capabilities in the data editor (#6551).
    • Unified missing values to None in returned data structures (#6544).
    • A warning is shown in cells when integers exceed the maximum safe value of (2^53) -1 (#6311, #6549).
    • Prevented editing the sessions state by showing a warning (#6634).
    • Fixed issues with list columns sometimes breaking the frontend (#6644).
    • Fixed a display issue with index columns using category dtype (#6680, #6598).
    • Fixed an issue that prevented a rerun when adding empty rows (#6598).
    • Unified the behavior between st.data_editor and st.dataframe related to auto-hiding the index column(s) based on the input data (#6659, #6598)
  • 🛡️ Streamlit's Security Policy can be found in its GitHub repository (#6666).
  • 🤏 Documented the integer size limit for st.number_input and st.slider (#6724).
  • 🐍 The majority of Streamlit's Python dependencies have set a maximum allowable version, with the standard upper limit set to the next major version, but not inclusive of it (#6691).
  • 💅 UI design improvements to in-app modals (#6688).
  • 🐞 Bug fix: st.date_input's date selector is equally visible in dark mode (#6072, #6630).
  • 🐜 Bug fix: the sidebar navigation expansion indicator in multipage apps is restored (#6731).
  • 🐛 Bug fix: The docstring and exception message for st.set_page_config have been updated to clarify that this command can be invoked once for each page within a multipage app, rather than once per entire app (#6594).
  • 🐝 Bug fix: st.json no longer collapses multiple spaces in both keys and values with single space when rendered (#6657, #6663).

Release date: April 27, 2023

Highlights

  • 🔌 Introducing st.experimental_connection: Easily connect your app to data sources and APIs using our new connection feature. Find more details in the API reference, and stay tuned for an upcoming blog post and in-depth documentation! In the meantime, explore our updated MySQL and Snowflake connection tutorials for examples of this feature.

Notable Changes

  • 🐼 Streamlit now supports Pandas 2.0 (#6413, #6378, #6507). Thanks, connortann!
  • 🍔 Customize the visibility of items in the toolbar, options menu, and the settings dialog using the client.toolbarMode config option (#6174).
  • 🪵 Streamlit logs now reside in the "streamlit" namespace instead of the root logger, enabling app developers to better manage log handling (#3978, #6377).

Other Changes

  • 🔏 CLI parameters can no longer be used to set sensitive configuration values (#6376).
  • 🤖 Improved the debugging experience by reducing log noise (#6391).
  • 🐞 Bug fix: @st.cache_data decorated functions support UUID objects as parameters (#6440, #6459).
  • 🐛 Bug fix: Tabbing through buttons and other elements now displays a red border only when focused, not when clicked (#6373).
  • 🪲 Bug fix: st.multiselect's clear icon is larger and includes a hover effect (#6471).
  • 🐜 Bug fix: Custom theme font settings no longer apply to code blocks (#6484, #6535).
  • ©️ Bug fix: st.code's copy-to-clipboard button appears when you hover on code blocks (#6490, #6498).

Release date: April 6, 2023

Highlights

  • 📏 Introducing st.divider — a command that displays a horizontal line in your app. Learn how to use this command in its API reference.
  • 🔏 Streamlit now supports the use of a global secrets.toml file, in addition to a project-level file, to easily store and securely access your secrets. Learn more in Secrets management.
  • 🚀 st.help has been revamped to show more information about object methods, attributes, classes, and more, which is great for debugging (#5857, #6382)!

Notable Changes

  • 🪜 st.time_input supports adding a stepping interval with the keyword-only step parameter (#6071).
  • ❓ Most text elements can include tooltips with the help parameter (#6043).
  • ↔️ st.pyplot has a use_container_width parameter to set the chart to the container width (now all chart elements support this parameter) (#6067).
  • 👩‍💻 st.code supports optionally displaying line numbers to the code block's left with the boolean line_numbers parameter (#5756, #6042).
  • ⚓ Anchors in header elements can be turned off by setting anchor=False (#6158).

Other Changes

  • 🐼 st.table and st.dataframe support pandas.Period, and number and boolean types in categorical columns (#2547, #5429, #5329, #6248).
  • 🕸️ Added .webp to the list of allowed static file extensions (#6331)
  • 🐞 Bug fix: stop script execution on websocket close to immediately clear session information (#6166, #6204).
  • 🐜 Bug fixes: updated allowed/disallowed label markdown behavior such that unsupported elements are unwrapped and only their children (text contents) render (#5872, #6036, #6054, #6163).
  • 🪲 Bug fixes: don't push browser history states on rerun, use HTTPS to load external resources in streamlit hello, and make the browser back button work for multipage apps (#5292, #6266, #6232). Thanks, whitphx!
  • 🐝 Bug fix: avoid showing emoji on non-UTF-8 terminals. (#2284, #6088). Thanks, kcarnold!
  • 📁 Bug fix: override default use of File System Access API for react-dropzone so that st.file_uploader's File Selection Dialog only shows file types corresponding to those included in the type parameter (#6176, #6315).
  • 💾 Bug fix: make the .clear() method on cache-decorated functions work (#6310, #6321).
  • 🏃 Bug fix: st.experimental_get_query_params doesn't need reruns to work (#6347, #6348). Thanks, PaleNeutron!
  • 🐛 Bug fix: CachedStFunctionWarning mentions experimental_allow_widgets instead of the deprecated suppress_st_warning (#6216, #6217).

Release date: March 09, 2023

Notable Changes

  • 🔐 Added support for configuring SSL to serve apps directly over HTTPS (#5969).
  • 🖼️ Granular control over app embedding behavior with the /?embed and /?embed_options query parameters. Learn how to use this feature in our docs (#6011, #6019).
  • ⚡ Enabled the runner.fastReruns configuration option by default to make apps much more responsive to user interaction (#6200).

Other Changes

  • 🍔 Cleaned up the hamburger menu by removing the least used options (#6080).
  • 🖨️ Design changes to ensure apps being printed or saved as a PDF look good (#6180).
  • 🐞 Bug fix: improved dtypes checking in st.experimental_data_editor (#6185, #6188).
  • 🐛 Bug fix: properly position st.metric's help tooltip when not inside columns (#6168).
  • 🪲 Bug fix: regression in retrieving messages from the server's ForwardMsgCache (#6210).
  • 🌀 Bug fix: st.cache_data docstring for the show_spinner param now lists str as a supported type (#6207, #6213).
  • ⏱️ Made ping and websocket timeouts far more forgiving (#6212).
  • 🗺️ st.map and st.pydeck_chart docs state that Streamlit's Mapbox token will not work indefinitely (#6143).

Release date: February 23, 2023

Highlights

  • ✂️ Introducing st.experimental_data_editor, a widget that allows you to edit DataFrames and many other data structures in a table-like UI. Read more in our documentation and blog post.

Other Changes

  • ✨ Streamlit's GitHub README got a new look (#6016).
  • 🌚 Improved readability of styled dataframe cells in dark mode (#6060, #6098).
  • 🐛 Bug fix: make apps work again in the latest versions of Safari, and in Chrome with third-party cookies blocked (#6092, #6094, #6087, #6100).
  • 🐞 Bug fix: refer to new cache primitives in the "Clear cache" dialog and error messages (#6082, #6128).
  • 🐝 Bug fix: properly cache class member functions and instance methods (#6109, #6114).
  • 🐜 Bug fix: regression in st.metric tooltip position (#6093, #6129).
  • 🪲 Bug fix: allow fullscreen button to show for dataframes, charts, etc, in expander (#6083, #6148).

Release date: February 09, 2023

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!

Release date: January 12, 2023

Notable Changes

  • 🪄 @st.experimental_singleton supports an optional validate parameter that accepts a validation function for cached data and is called each time the cached value is accessed.
  • 💾  @st.experimental_memo's persist parameter can also accept booleans.

Other Changes

  • 📟 Multipage apps exclude __init__.py from the page selector (#5890).
  • 📐 The iframes of embedded apps have the ability to dynamically resize their height (#5894).
  • 🐞 Bug fix: thumb values of range sliders respect the container width (#5913).
  • 🪲 Bug fix: all examples in docstrings of Streamlit commands contain relevant imports to make them reproducible (#5877).

Release date: December 14, 2022

Highlights

  • 👩‍🎨 Introducing a new Streamlit theme for Altair, Plotly, and Vega-Lite charts! Check out our blog post for more information.
  • 🎨 Streamlit now supports colored text in all commands that accept Markdown, including st.markdown, st.header, and more. Learn more in our documentation.

Notable Changes

  • 🔁 Functions cached with st.experimental_memo or st.experimental_singleton can contain Streamlit media elements and forms.
  • ⛄ All Streamlit commands that accept pandas DataFrames as input also support Snowpark and PySpark DataFrames.
  • 🏷 st.checkbox and st.metric can customize how to hide their labels with the label_visibility parameter.

Other Changes

  • 🗺️ st.map improvements: support for upper case columns and better exception messages (#5679, #5792).
  • 🐞 Bug fix: st.plotly_chart respects the figure's height attribute and the use_container_width parameter (#5779).
  • 🪲 Bug fix: all commands with the icon parameter such as st.error, st.warning, etc, can contain emojis with variant selectors (#5583).
  • 🐝 Bug fix: prevent st.camera_input from jittering when resizing the browser window (#5661).
  • 🐜 Bug fix: update exception layout to avoid overflow of stack traces (#5700).

Release date: November 17, 2022

Notable Changes

  • 💅 Widget labels can contain inline Markdown. See our docs and demo app for more info.
  • 🎵 st.audio now supports playing audio data passed in as NumPy arrays with the keyword-only sample_rate parameter.
  • 🔁 Functions cached with st.experimental_memo or st.experimental_singleton can contain Streamlit widgets using the experimental_allow_widgets parameter. This allows caching checkboxes, sliders, radio buttons, and more!

Other Changes

  • 👩‍🎨 Design tweak to prevent jittering in sliders (#5612).
  • 🐛 Bug fix: links in headers are red, not blue (#5609).
  • 🐞 Bug fix: properly resize Plotly charts when exiting fullscreen (#5645).
  • 🐝: Bug fix: don't accidentally trigger st.balloons and st.snow (#5401).

Release date: October 27, 2022

Highlights

  • 🎨 st.button and st.form_submit_button support designating buttons as "primary" (for additional emphasis) or "secondary" (for normal buttons) with the type keyword-only parameter.

Notable Changes

  • 🤏 st.multiselect has a keyword-only max_selections parameter to limit the number of options that can be selected at a time.
  • 📄 st.form_submit_button now has the disabled parameter that removes interactivity.

Other Changes

  • 🏓 st.dataframe and st.table accept categorical intervals as input (#5395).
  • ⚡ Performance improvements to Plotly charts (#5542).
  • 🪲 Bug fix: st.download_button supports non-latin1 characters in filenames (#5465).
  • 🐞 Bug fix: Allow st.image to render a local GIF as a GIF, not as a static PNG (#5438).
  • 📱 Design tweaks to the sidebar in multipage apps (#5538, #5445, #5559).
  • 📊 Improvements to the axis configuration for built-in charts (#5412).
  • 🔧 Memo and singleton improvements: support text values for show_spinner, use datetime.timedelta objects as ttl parameter value, properly hash PIL images and Enum classes, show better error messages when returning unevaluated dataframes (#5447, #5413, #5504, #5426, #5515).
  • 🔍 Zoom buttons in maps created with st.map and st.pydeck_chart use light or dark style based on the app's theme (#5479).
  • 🗜 Websocket headers from the current session's incoming WebSocket request can be obtained from a new "internal" (i.e.: subject to change without deprecation) API (#5457).
  • 📝 Improve the text that gets printed when you first install and use Streamlit (#5473).

Release date: September 22, 2022

Notable Changes

  • 🏷 Widgets can customize how to hide their labels with the label_visibility parameter.
  • 🔍 st.map adds zoom buttons to the map by default.
  • ↔️ st.dataframe supports the use_container_width parameter to stretch across the full container width.
  • 🪄 Improvements to st.dataframe sizing: Column width calculation respects column headers, supports double click between column headers to autosize, better fullscreen support, and fixes the issue with the width parameter.

Other Changes

  • ⌨️ st.time_input allows for keyboard-only input (#5194).
  • 💿 st.memo will warn the user when using ttl and persist keyword argument together (#5032).
  • 🔢 st.number_input returns consistent type after rerun (#5359).
  • 🚒 st.sidebar UI fixes including a fix for scrollbars in Firefox browsers (#5157, #5324).
  • 👩‍💻 Improvements to usage metrics to guide API development.
  • ✍️ More type hints! (#5191, #5192, #5242, #5243, #5244, #5245, #5246) Thanks harahu!

Release date: August 11, 2022

Highlights

  • 📊 Built-in charts (e.g. st.line_chart) get a brand-new look and parameters x and y! Check out our blog post for more information.

Notable Changes

  • ⏯ Functions cached with st.experimental_memo or st.experimental_singleton can now contain static st commands. This allows caching text, charts, dataframes, and more!
  • ↔️ The sidebar is now resizable via drag and drop.
  • ☎️ st.info, st.success, st.error, and st.warning got a redesign and have a new keyword-only parameter: icon.

Other Changes

  • 🎚️ st.select_slider correctly handles all floats now (#4973, #4978).
  • 🔢 st.multi_select can take values from enums (#4987).
  • 🍊 st.slider range values can now be set through st.session_state (#5007).
  • 🎨 st.progress got a redesign (#5011, #5086).
  • 🔘 st.radio better deals with list-like dataframes (#5021).
  • 🧞‍♂️ st.cache properly handles JSON files now (#5023).
  • ⚓️ Headers render markdown now when the anchor parameter is set (#5038).
  • 🗻 st.image can now load SVGs from Inkscape (#5040).
  • 🗺️ st.map and st.pydeck_chart use light or dark style based on the app's theme (#5074, #5108).
  • 🎈 Clicks on elements below st.balloons and st.snow don't get blocked anymore (#5098).
  • 🔝 Embedded apps have lower top padding (#5111).
  • 💅 Adjusted padding and alignment for widgets, charts, and dataframes (#4995, #5061, #5081).
  • ✍️ More type hints! (#4926, #4932, #4933)

Release date: July 14, 2022

Highlights

  • 🗂 Introducing st.tabs to have tab containers in your app. See our documentation on how to use this feature.

Notable Changes

  • ℹ️ st.metric supports tooltips with the help keyword parameter.
  • 🚇 st.columns supports setting the gap size between columns with the gap keyword parameter.

Other Changes

  • 💅 Design tweaks to st.selectbox, st.expander, st.spinner (#4801).
  • 📱 The sidebar will close when users select a page from the navigation menu on mobile devices (#4851).
  • 🧠 st.memo supports dataclasses! (#4850)
  • 🏎 Bug fix for a race condition that destroyed widget state with rapid interaction (#4882).
  • 🏓 st.table presents overflowing content to be scrollable when placed inside columns and expanders (#4934).
  • 🐍 Types: More updated type annotations across Streamlit! (#4808, #4809, #4856)

Are you curious about older versions? To see older release notes, see Release notes (historical).

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.