插件 'jupyter-gmaps' 激活失败

Plugin 'jupyter-gmaps' failed to activate

我正在尝试在我的 jupyter 环境中安装 gmaps 0.9.0,但是当我尝试 运行 来自 the tutorial page 的示例时,它只是卡在“正在加载小部件...” :

在 chrome 开发人员工具中,我可以看到明显出了问题:

Plugin 'jupyter-gmaps' failed to activate. Error: No provider for: jupyter.extensions.jupyterWidgetRegistry. Could not instantiate widget

以下是我用来构建 gmap 的 docker 文件中的行:

RUN pip install gmaps==0.9.0
RUN jupyter nbextension enable --py --sys-prefix gmaps && jupyter lab build

这是我试过的方法:

  1. 有无 %matplotlib inline(根据 this SO question
  2. Pip 安装版本 0.9.0 和 0.8.2
  3. 我已经阅读了这张 github 票,但没有看到任何有用的信息:https://github.com/pbugnion/gmaps/issues/79(他们建议重新启动您的计算机,但我已经重建了我的 docker 容器,以便显然对我没有帮助)

我的 jupyterlab 版本是 2.2.0。更新到 3.0.14 为我解决了这个问题。