Plotly Choropleth not Displaying in Streamlit

Hello!

I’m working on a Streamlit app that’s living inside Snowflake. I would like to have a plotly choropleth included to represent some state-specific data, however, the chart isn’t getting drawn correctly. The plotly chart and color legend gets displayed, but the actual map of the states isn’t available.


I could provide code, but the same issue occurs regardless of what choropleth code I use, including the examples from plotly: Choropleth maps in Python . Additionally, I can’t use the “download plot as a png” feature in the plotly chart. My other plotly figures get drawn just fine so I think this is choropleth specific. Please let me know how I can fix this!

1 Like

I am having the same issue. Please, let us know if you find any workaround to resolve it!

This is due to Snowflakes content security policy. The only external domain that can be loaded is mapbox. When you run the Plotly map, it is calling their CDN which Snowflake blocks.

More info in their docs here.