我想为Jupyter Lab安装git扩展。根据建议的here,我使用了以下命令:
pip install --upgrade jupyterlab-git
jupyter lab build
接着,检查命令的结果如下:
(base) neeraj@neeraj-personal:~$ jupyter serverextension list
config dir: /home/neeraj/.jupyter
jupyterlab_git enabled
- Validating...
jupyterlab_git 0.21.1 OK
config dir: /home/neeraj/Documents/0_anaconda3/etc/jupyter
jupyterlab enabled
- Validating...
jupyterlab 2.2.6 OK
jupyterlab_git enabled
- Validating...
jupyterlab_git 0.21.1 OK
nbdime enabled
- Validating...
nbdime 2.0.0 OK
和
(base) neeraj@neeraj-personal:~$ jupyter labextension list
JupyterLab v2.2.6
Known labextensions:
app dir: /home/neeraj/Documents/0_anaconda3/share/jupyter/lab
@jupyterlab/git v0.21.1 enabled OK
@jupyterlab/latex v2.0.1 enabled OK
@jupyterlab/toc v4.0.0 enabled OK
jupyterlab-recents v2.0.0 enabled OK
Git面板不可见。如何解决这个问题,或者我还缺少其他任何步骤或依赖项?
启动Jupyter Lab时没有错误消息。以下是消息。
jupyter lab
[I 08:43:23.622 LabApp] JupyterLab extension loaded from /home/neeraj/Documents/0_anaconda3/lib/python3.7/site-packages/jupyterlab
[I 08:43:23.622 LabApp] JupyterLab application directory is /home/neeraj/Documents/0_anaconda3/share/jupyter/lab
[I 08:43:23.837 LabApp] Serving notebooks from local directory: /home/neeraj
[I 08:43:23.838 LabApp] Jupyter Notebook 6.1.1 is running at:
[I 08:43:23.838 LabApp] http://localhost:8888/?token=b2f0f43a667bf02d5dd6909b54142c31264d676921cea5f6
[I 08:43:23.838 LabApp] or http://127.0.0.1:8888/?token=b2f0f43a667bf02d5dd6909b54142c31264d676921cea5f6
[I 08:43:23.838 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:43:23.938 LabApp]
To access the notebook, open this file in a browser:
file:///home/neeraj/.local/share/jupyter/runtime/nbserver-5762-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=b2f0f43a667bf02d5dd6909b54142c31264d676921cea5f6
or http://127.0.0.1:8888/?token=b2f0f43a667bf02d5dd6909b54142c31264d676921cea5f6
[I 08:43:33.879 LabApp] Build is up to date
[I 08:44:51.796 LabApp] Kernel started: 63592d97-9dfd-4c9b-a5dc-adaec553f7b9, name: python3