I have the following code which should render a choropleth map.
import plotly.express as px
import geopandas as gpd
# Example GeoJSON file with polygon geometries
geojson_file = 'example.geojson'
# Read GeoJSON file into GeoDataFrame
*** = gpd.read_file(geojson_file)
# Create Mapbox GL plot
fig = px.choropleth_mapbox(
***,
geojson=***.geometry,
locations=***.index,
color='property',
center=dict(lat=0, lon=0),
zoom=1,
mapbox_style="carto-positron"
)
fig.update_layout(margin=dict(l=0, r=0, t=0, b=0))
fig.show()
however, when I run the code in jupyter notebook, I get a blank output. Map doesn't render.