4

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.

RussKie
  • 1,630
  • 11
  • 20
mockash
  • 1,204
  • 5
  • 14
  • 26

4 Answers4

6

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- you can install it with:

pip install jupyterlab==3
pip install jupyterlab-git==0.30

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
krassowski
  • 13,598
  • 4
  • 60
  • 92
2

I don’t know if it’s an option for many people, but I was having this issue, and it helped me to restart the Jupyter server (to restart the OS).

Soid
  • 2,585
  • 1
  • 30
  • 42
  • That did the trick for me. I installed the extension, ran the rebuild command and the error being thrown read "Failed to load the jupyterlab-git server extension..." together with instructions to ensure it's installed and check that it's enabled, which it was. I was able to fix it by restarting the server on which the jupyter lab was hosted. – Marceli Wac Mar 30 '23 at 12:54
0

https://github.com/jupyterlab/jupyterlab-git/issues/861

The link above says that some people are getting this error because a new version of the extension has not been released for JL3.

So install the older version.

0

Add below git binary file locations to PATH environment variable:

  1. %PROGRAMFILES%\Git\mingw64\libexec\git-core
  2. %PROGRAMFILES%\Git\usr\bin

and then restart the Jupyter session.