Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

jupyter lab - Failed to load jupyterlab-git server extension

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.

enter image description here

(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.

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...