1. jupyter中无法缩放
解决方案:
config = {'scrollZoom': True}
# fig.show(config=config)
iplot(fig, config=config)
2. plotly绘制的地图在html中显示未空白
pio.renderers.default = 'plotly_mimetype'
-----------------------
Default renderer: 'plotly_mimetype+notebook_connected+iframe'
Available renderers:
['plotly_mimetype', 'jupyterlab', 'nteract', 'vscode',
'notebook', 'notebook_connected', 'kaggle', 'azure', 'colab',
'cocalc', 'databricks', 'json', 'png', 'jpeg', 'jpg', 'svg',
'pdf', 'browser', 'firefox', 'chrome', 'chromium', 'iframe',
'iframe_connected', 'sphinx_gallery', 'sphinx_gallery_png']