Open psychemedia opened 5 months ago
Just tried installing this extension for the first time, in a freshly-installed JupyterHub instance, and immediately hit this issue. Are you able to reproduce this @zsailer et al.?
I had the same issue in jupyterhub. Restarted the server resolved it.
Restarting did not resolve the issue for me.
i don't know if this was the reason. But I saw that version 0.50.1 failed to be published on conda-forge. It is done now. Does that solve your issue?
No, that didn’t fix this issue. It should be easy to check that this is still broken. Just try installing jupyterlab-git in a fresh jupyterlab instance (eg using the Extensions tab in the UI) then observe that every time you load the UI you get the error “Failed to load the jupyterlab-git server extension”.
@jab I deployed hundreds of JupyterLab servers and did not encounter this issue. Your problem may be that you are installing the extension too late, this is after the single user server has started. Alternatively, you may be running the legacy notebook server instead of jupyter-server. Running jupyter server extension list
, pasting startup logs from the single user server and the JupyterHub configuration may help to give us better picture here.
@krassowski
this is my jupyter server extension list
outpu:
(base) jovyan@bc4396815f67:~$ jupyter server extension list
Config dir: /home/jovyan/.jupyter
Config dir: /opt/conda/etc/jupyter
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_server_mathjax enabled
- Validating jupyter_server_mathjax...
jupyter_server_mathjax OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.2.3 OK
jupyterlab_git enabled
- Validating jupyterlab_git...
jupyterlab_git 0.50.1 OK
nbclassic enabled
- Validating nbclassic...
A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
nbclassic 1.1.0 OK
nbdime enabled
- Validating nbdime...
nbdime 4.0.1 OK
notebook enabled
- Validating notebook...
notebook 7.2.1 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
Config dir: /usr/local/etc/jupyter
@xiongjiamu I had this error too. My case: running jupyterhub in docker container with docker container spawner from here https://github.com/jupyterhub/jupyterhub-deploy-docker. I used quay.io/jupyter/base-notebook:latest for spawned containers where git was not installed. Quickly solved it by using quay.io/jupyter/datascience-notebook image where git is included. After restart git extentions started to work.
I guess the best approach is to build custom image based on quay.io/jupyter/base-notebook and include git there, but did not check it. I am fine with heavier datascience image.
So if this requires git then I assume it will fail to load in JupyterLite, which seems to be a natural place to want to synch with eg GitHub repos?
Trying to run JupyterLab with the latest package in a clean Docker build, I get: