Version 1.14.0

Highlights

  • :art: 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

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

Other Changes

  • :ping_pong: st.dataframe and st.table accept categorical intervals as input (#5395).
  • :zap: Performance improvements to Plotly charts (#5542).
  • :beetle: Bug fix: st.download_button supports non-latin1 characters in filenames (#5465).
  • :lady_beetle: Bug fix: Allow st.image to render a local GIF as a GIF, not as a static PNG (#5438).
  • :iphone: Design tweaks to the sidebar in multipage apps (#5538, #5445, #5559).
  • :bar_chart: Improvements to the axis configuration for built-in charts (#5412).
  • :wrench: 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).
  • :mag: Zoom buttons in maps created with st.map and st.pydeck_chart use light or dark style based on the app’s theme (#5479).
  • :clamp: 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).
  • :memo: Improve the text that gets printed when you first install and use Streamlit (#5473).
12 Likes

Hello!

I tried to deploy an app with this new version in Google App Engine with no luck. The app page only showed “Please wait…”.

The logs showed the error about “server.enableCORS=false”:

Warning: the config option 'server.enableCORS=false' is not compatible with 'server.enableXsrfProtection=true'.
As a result, 'server.enableCORS' is being overridden to 'true'.
More information:
In order to protect against CSRF attacks, we send a cookie with each request.
To do so, we must specify allowable origins, which places a restriction on
cross-origin resource sharing.
If cross origin resource sharing is required, please disable server.enableXsrfProtection.

So I tried to disable the server.enableXsrfProtection and others solutions after searching, but had no success.

I was able to solve the problem by downgrading streamlit version to 1.13.0.

1 Like

Hey @caioneves, thanks for the report - and what a pain!

It sounds like this might be a regression, though we’re not (yet) able to repro it. To help us diagnose, could you re-upgrade to Streamlit 1.14 and paste us the contents of your browser’s developer console output after you hit the “Please wait…” message?

I’m wondering if we’ll see an uncaught exception, or other error, being logged in the console that could help us track down what’s going on.

Hi there,

Tried redeploying my app to Google Cloud Run using Streamlit 1.14.0 and it also gets stuck at “Please wait…”.

In case this helps to identify the regression:

  • Logs show that the requestURL is my URL + “/st-allowed-message-origins”.
  • My browser’s developer console shows the infamous healthz error:

Thanks in advance for addressing this.

Hi Tim!

Redeployed a hello app [st.write(“hello”)] with Streamlit 1.14.0 and the log is showing the requestUrl is URL + “/st-allowed-message-origins”.

Same here with this “healthz” error on the browser dev console.

Thanks! We’ll work on fixing this ASAP.

3 Likes

@kmcgrady

Another notable change is the multi-select will remain open even after you select an option. A further improvement would be to retain the state of the search input/filtered list and after selecting the remaining options not only keep the multi-select open but keep the filtered list in view as well.

2 Likes

Hey @caioneves @marduk, sorry about that!

(TL; DR version - we’ll have a patch out fixing this in the next few days, likely early next week to avoid releasing a patch too late in the week)

I managed to track down the root-cause of the issue, which is that one of my recent changes made things so that the web client always does a healthcheck on the server before trying to establish its websocket connection. Previously, it just attempted to establish the websocket connection without knowing whether the server is healthy.

I’m fairly certain that /healthz has actually always been broken in Cloud Run / App Engine (due to the endpoint name being reserved), but it previously wasn’t an obvious issue because it only got pinged if the client lost its websocket connection. At that point, you’d see the same behavior that you’re running into now since the /healthz checks are guaranteed to fail, but it’d only be mildly annoying because a page refresh would fix it.

The good news is that we’re finally going to rename these endpoints in a few months (it’ll take awhile before we can do it because a few other non-open source teams rely on the /healthz endpoint of apps, so we’ll need to coordinate the switch), but in the meantime I’ll have a temporary fix out for this shortly.


Update: PR containing a fix is open in

I’ll update this thread again once 1.14.1 is released.

3 Likes

Hi @vdonato ,

Will 1.14.1 be released this week? Would be great, so we can redeploy and test over the weekend :slight_smile: Thanks in advance.

Hi,

Just noticed a glitch with plotly charts after upgrading to 1.14.0: If a plotly chart (rendered with st.plotly) is expanded and then reduced, it doesn’t reduce to its original size. I’ve added screenshots with an example. This works fine in 1.13.0.

Before expanding (all ok):

Expanded (all still ok):

After reverting (doesn’t reduce to original size):

After reverting (reduced plot is out of scale & alignment with other plots):

Regards,
Peter

Hi @PeterG, thanks for letting us know of this issue. This has been fixed Plotly Full Screen causes issues · Issue #5644 · streamlit/streamlit · GitHub and the fix will be released in a future version.

Hi @marduk,

Sorry for the delay on this! Version 1.14.1 should be released now.

(Also heads up @caioneves)

2 Likes

@PeterG , This should also be fixed in 1.14.1!

1 Like

Thanks @willhuang @blackary! That’s impressive turnaround time on bugfixes :smile:. Streamlit sets a very high bar!

5 Likes

Missed that one.
Thanks a lot!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.