如何为jupyter-lab-4.0.2激活jupyterlab-vim?

huangapple go评论95阅读模式
英文:

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.
    
  • 消息图片:
    如何为jupyter-lab-4.0.2激活jupyterlab-vim?

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:

    如何为jupyter-lab-4.0.2激活jupyterlab-vim?

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

huangapple
  • 本文由 发表于 2023年7月10日 22:34:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76654793.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定