I have a problem to show map in Jupyter.
I check if token is valid or not and it shows a map.
https://api.mapbox.com/v4/mapbox.satellite/page.html?access_token=my-token-api
Blank Map is appeared on the screen. How can I fix it?
Here is my code snippet.
import plotly.graph_objects as go
import plotly.io as pio
import plotly.express as px
import plotly
access_token = 'my-token-api'
px.set_mapbox_access_token(access_token)
fig = px.density_mapbox(corona_df,
lat='Lat',
lon='Long',
hover_name='Country',
hover_data = ['Total_Corfirmed', 'Total_Death', 'Total_Recovered'],
animation_frame="Day_Date",
color_continuous_scale='Rainbow',
radius=7, zoom=0, height=700)
fig.update_layout(title='Worldwide Corona Virus Cases Time Lapse - Confirmed, Deaths, Recovered'
,font=dict(family="Courier New, monospace",size=18,color="#7f7f7f"))
fig.update_layout(mapbox_style="dark", mapbox_accesstoken = access_token)
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
fig.show()