jupyter-notebook - 安装 Jupyter Lab Git 扩展 : Mismatched front/backend versions 的问题

标签 jupyter-notebook jupyter-lab git-extensions

以下是我安装 Jupyter Lab 和 Git 扩展的步骤,然后尝试解决扩展版本不匹配问题:
规范:MacOS Mojave 10.14.6,Jupyter Lab 3.0.5
1. 我使用 pip3 install jupyterlab 安装了 Jupyter Lab
2. 我直接从 Jupyter Lab 的 Widgets Manager 安装了 Jupyter Lab Git 扩展:
enter image description here
3. 这样做后,我收到了额外的指示:
enter image description here
4. 我点击了“确定”,然后运行 ​​pip3 install jupyterlab-git 5. 回到 Jupyter 实验室,它说需要一个构建来包含最新的更改,所以我选择了“重建”
enter image description here
6. 构建成功,我点击了“保存并重新加载”
enter image description here
7. 重新加载后,我收到以下消息:
enter image description here
8. 我按照说明运行 pip3 install --upgrade jupyterlab-git 9. 我回到 Jupyter 实验室并单击消息上的“关闭”。
10. 我通过终端关闭并重新打开了 Jupyter Lab。重新打开后,出现同样的“加载失败”消息。
11. 然后我找到了 this link对类似问题进行故障排除。
12. 我按照建议运行以下所有命令(使用 pip3,并修复拼写错误):
enter image description here
13. 用户然后建议以下以确保一切正常。所以我再次关闭了 Jupyter Lab,并运行了以下所有内容:
enter image description here
14. 运行 jupyter serverextension list我得到以下内容,我认为看起来不错:
enter image description here
15. 然后我跑了pip3 list然后回来:jupyterlab-git 0.23.3 (所以 Git 扩展版本 0.23.3,根据我撰写本文时的 GitHub 扩展 page 是最新的(非测试版)版本)。
16. 然后我跑了jupyter labextension list并没有看到与 Git 扩展相关的任何内容,根据上述用户的屏幕截图,这不是预期的(它应该在此处显示 Git 扩展):
enter image description here
17. 现在是最后一件事:当我返回并通过 Jupyter Lab 的扩展管理器安装 Git 扩展时(就像我最初所做的那样),然后我运行 jupyter labextension list再次,我看到 Git 扩展是“预发布”版本 v0.30.0b1,这可能就是为什么要回到 第 7 步 我收到前端和后端扩展不匹配的错误消息。
这就是我被困的地方。我似乎无法让这两个扩展安装匹配(或者在侧面板中显示扩展图标)。
我四处走动……
编辑:可能的解决方案。
在这里阅读了我自己的问题后,我想也许我应该尝试安装“预发布”Git 扩展版本以匹配其他版本,这似乎奏效了。我只是不认为使用“预发布”或测试版是最佳实践,所以直到现在我才想到这一点。所以我不会在这里“解决”我自己的问题,因为我不确定这是最好的解决方案... 但是是吗?
我跑了这个:pip3 install jupyterlab-git==0.30.0b1现在我不再看到任何版本不匹配错误,并且 Git 扩展图标终于出现在侧面板中。

最佳答案

它们的版本需要按照 #779 匹配
对我有用的是:pip install --upgrade --pre jupyterlab-git

关于jupyter-notebook - 安装 Jupyter Lab Git 扩展 : Mismatched front/backend versions 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65851738/

相关文章:

python - 如何在连续的 matplotlib 图形之间添加空格?

python - 如何在 jupyter 笔记本或 jupyter_lab 中的 plt.show() 之前不显示图表

git - 同一文件中的更改可以拆分为 git 中的不同提交吗?

r - 带有示例代码的 Jupyter R Plotly 404 错误

python-2.7 - 无法在jupyter/python2.7.5中使用line_profiler

google-cloud-platform - 当连接中断时,Google Cloud Platform 无法运行长时间运行的进程

python - Holoviews 示例 : How to display plot in Jupyter notebook?

typescript - 如何创建一个 Jupyter Lab 扩展,在 Jupyter Lab 笔记本的工具栏上添加一个自定义按钮?

visual-studio-2010 - 安装后 Git Extensions 没有出现在 VS 2010 中

git-extensions - GIT 扩展如何替换文件而不合并。