问题
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