Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

jupyter lab - jupyterlab-git extension cannot be found

Hi I have set up up a Jupyterlab with several extensions, among them the jupyterlab-git extension. when I run

jupyter labextension list

I get:

JupyterLab v2.2.9
Known labextensions:
app dir: C:ProgramDataAnaconda3envsdatameshsharejupyterlab
    @elyra/code-snippet-extension v1.5.3 enabled  ok
    @elyra/metadata-extension v1.5.3 enabled  ok
    @elyra/pipeline-editor-extension v1.5.3 enabled  ok
    @elyra/python-editor-extension v1.5.3 enabled  ok
    @elyra/theme-extension v1.5.3 enabled  ok
    @jupyterlab/git v0.23.1 enabled  ok
    @jupyterlab/toc v4.0.0 enabled  ok
    jupyterlab_filetree v0.2.2 enabled  ok
    nbdime-jupyterlab v2.0.1 enabled  ok

the same here

jupyter serverextension list

I get:

config dir: C:ProgramDataAnaconda3envsdatameshetcjupyter
elyra enabled
- Validating...
  elyra 1.5.3 ok
jupyterlab enabled
- Validating...
  jupyterlab 2.2.9 ok
jupyterlab_git enabled
- Validating...
  jupyterlab_git 0.23.1 ok
nbdime enabled
- Validating...
  nbdime 2.1.0 ok
nbresuse enabled
- Validating...
  nbresuse  ok

But when I launch jupyterlab I get this:

Failed to load the jupyterlab-git server extension
git command not found - please ensure you have Git > 2 installed

of course is git installed!

How can fix this? I have searched high and low but couldn't find a fix.

question from:https://stackoverflow.com/questions/65951084/jupyterlab-git-extension-cannot-be-found

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

1 Reply

0 votes
by (71.8m points)

Just found out what the error was, may be someone has the same problem, so I share my findings here:

I have installed Git to use it with Git Bash only, so the PATH was not available for the jupyterlab-git extension to find.

Once I rerun the installation like described here

https://phoenixnap.com/kb/how-to-install-git-windows

all worked well.

A


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...