Problem with displaying plotly choropleth figure

This is the sample code from plotly choropleth figure.
The figure is displayed fine with, but broken in a st app.
It works fine with other type of plotly figure, but seems that no data is attached in a choropleth figure.

Any help is appreciated.

Here is the code:

import streamlit as st
import as px

df =
geojson =

fig = px.choropleth(df, geojson=geojson, color="Bergeron",
                    locations="district", featureidkey="properties.district",
fig.update_geos(fitbounds="locations", visible=False)

Expected figure:

Displayed in st:

Welcome to Streamlit, @misssprite, and thanks for the report!

I commented in the associated bug (, but for anyone else coming across this: our Plotly.js library was out of date. I’ve updated it to the latest (which fixes this bug); the fix should show up in a Streamlit release soon!