我正在尝试使用Google Datalab上的ipyleaflet库,并且正在执行以下步骤:
首先,在两个Python版本(2.7和3.6)上安装库:
> %%bash
>
> pip install ipyleaflet pip install ipywidgets jupyter nbextension
> enable --py --sys-prefix ipyleaflet jupyter nbextension enable --py
> widgetsnbextension
结果:
启用笔记本扩展jupyter-leaflet / extension ... -验证:确定启用笔记本扩展jupyter-js-widgets / extension ... -验证:确定
第二,我正在使用此脚本进行测试,但没有任何反应:
> from ipyleaflet import Map Map(center=[34.6252978589571,
> -77.34580993652344], zoom=10)
我们没有看到任何图形或地图。我们把事情弄错了吗?