英文:
How to activate jupyterlab-vim for jupyter-lab-4.0.2?
问题
我尝试运行安装命令 pip install jupyterlab-vim
,该命令在 https://github.com/jupyterlab-contrib/jupyterlab-vim#install 中找到。
执行 jupyter labextension list
的结果如下:
- 消息:
JupyterLab v4.0.2 /opt/conda/share/jupyter/labextensions jupyterlab_pygments v0.2.2 enabled X (python, jupyterlab_pygments) @axlair/jupyterlab_vim v0.16.0 enabled X (python, jupyterlab_vim) The following extensions are outdated: jupyterlab_pygments @axlair/jupyterlab_vim Consider running "jupyter labextension update --all" to check for updates.
- 消息图片:
从 X
的结果来看,似乎出现了一些问题,但我找不到更详细的错误消息。
我尝试过的方法:
- 我能找到的最相关的来源是:如何使Vim编辑器扩展正常工作?,但我认为解决方案不适合我,因为我没有使用任何虚拟环境。
- 一旦我将 jupyterlab 降级到 3.2.4,命令
pip install jupyterlab-vim
就能正常工作了。
我应该怎么做来修复这个问题?
我的 Jupyter Lab 环境:
jupyter_client 8.3.0
jupyter_core 5.3.1
jupyter-events 0.6.3
jupyter-lsp 2.2.0
jupyter_server 2.7.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.2
jupyterlab-pygments 0.2.2
jupyterlab_server 2.23.0
jupyterlab-vim 0.16.0
英文:
I try to run the install command pip install jupyterlab-vim
, which I found in https://github.com/jupyterlab-contrib/jupyterlab-vim#install
Result of executing jupyter labextension list
:
-
messages:
JupyterLab v4.0.2 /opt/conda/share/jupyter/labextensions jupyterlab_pygments v0.2.2 enabled X (python, jupyterlab_pygments) @axlair/jupyterlab_vim v0.16.0 enabled X (python, jupyterlab_vim) The following extensions are outdated: jupyterlab_pygments @axlair/jupyterlab_vim Consider running "jupyter labextension update --all" to check for updates.
-
picture of messages:
From the result of X
, it seems like something went wrong, but I can't find the more detailed error message.
What I've tried:
- The most relative source I can find is : How to get Vim editor extension working?, but I don't think the solution fit for me, because I don't use any virtual environment.
- Once I downgrade jupyterlab to 3.2.4, the command
pip install jupyterlab-vim
work again.
What should I do to repair this issue?
My jupyter lab environment:
jupyter_client 8.3.0
jupyter_core 5.3.1
jupyter-events 0.6.3
jupyter-lsp 2.2.0
jupyter_server 2.7.0
jupyter_server_terminals 0.4.4
jupyterlab 4.0.2
jupyterlab-pygments 0.2.2
jupyterlab_server 2.23.0
jupyterlab-vim 0.16.0
答案1
得分: 1
The jupyterlab-vim extension (version 0.16) works with jupyterlab 3.6.5, but not jupyterlab 4. I suggest that you pin the version that works with one of the lines of shell code below and submit an issue at https://github.com/jupyterlab-contrib/jupyterlab-vim/issues.
pip install jupyterlab==3.6.5
conda install -yc conda-forge jupyterlab==3.6.5
mamba install -yc conda-forge jupyterlab==3.6.5
英文:
The jupyterlab-vim extension (version 0.16) works with jupyterlab 3.6.5, but not jupyterlab 4. I suggest that you pin the version that works with one of the lines of shell code below and submit an issue at https://github.com/jupyterlab-contrib/jupyterlab-vim/issues.
pip install jupyterlab==3.6.5
conda install -yc conda-forge jupyterlab==3.6.5
mamba install -yc conda-forge jupyterlab==3.6.5
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论