本文介绍了无法加载jupyterlab-git服务器扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在jupyterlab中安装git extension,但出现以下错误.所有服务器扩展均已启用,但未加载.

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

按照另一页的建议,我已经安装了jupyter_nbextensions_configurator,但仍然没有帮助.我正在Linux机器上从jupyterhub运行jupyterlab.

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.

推荐答案

这是 jupyterlab-git 0.22.2中引入的已知错误. GitHub问题中的评论提到刷新浏览器可能会有所帮助,但我没有尝试过.此问题已在JupyterLab 3.0的新版本(当前为Beta)中得到解决-您可以通过以下方式安装:

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

如果您仍无法更新到JupyterLab 3.x,则可以降级到0.22.1,这不会受到影响:

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

这篇关于无法加载jupyterlab-git服务器扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:20
查看更多