Failed to load jupyterlab-git server extension

三世轮回 提交于 2021-02-11 12:32:23

问题


I am trying to install git extension in jupyterlab but I get error as below. All server extensions are enabled but it doesn't load.

(base) [root@user01 opt]# jupyter serverextension list
config dir: /opt/anaconda3/etc/jupyter
    jupyterlab  enabled
    - Validating...
      jupyterlab 2.2.6 OK
    jupyterlab_git  enabled
    - Validating...
      jupyterlab_git 0.23.3 OK
    nbdime  enabled
    - Validating...
      nbdime 2.1.0 OK

As suggested in another page I have installed jupyter_nbextensions_configurator but still that didn't help. I am running jupyterlab from jupyterhub on linux machine.


回答1:


This is a known bug introduced in jupyterlab-git 0.22.2. The comments in the GitHub issue mention that refreshing browser may help but I have not tried it. This issue was fixed in the new version for JupyterLab 3.0 (currently in beta) - you can install it with:

pip install jupyterlab==3
pip install --pre jupyterlab-git==0.30.0b1

If you cannot yet update to JupyterLab 3.x, you can downgrade to 0.22.1 which is not affected:

pip install jupyterlab-git==0.22.1


来源:https://stackoverflow.com/questions/65918842/failed-to-load-jupyterlab-git-server-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!