在Jupyter Notebook中,光标是一个绿色的矩形。

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

Cursor in jupyter notebook is a green rectangle

问题

I think I may have inadvertently hit some keyboard shortcut on my laptop. Each time I click inside a cell, the cursor is a green rectangle, and it seems to behave in a command mode. If I enter a or i it goes back to normal (edit mode). Which is what I want pretty much all the time, so my experience is very annoying now, each time I click inside a cell, I have to press one of those keys before being able to do anything. Restarting the jupyter server didn't help.
Anyone has an idea how I can restore defaults, i.e. go back to defaulting to edit mode?
(sorry, no screenshot because this is at my job and I am not allowed to share a screenshot. I am attaching a cursor that looks similar. Basically, instead of a simple vertical line, it's a solid green rectangle)

英文:

I think I may have inadvertently hit some keyboard shortcut on my laptop. Each time I click inside a cell, the cursor is a green rectangle, and it seems to behave in a command mode. If I enter a or i it goes back to normal (edit mode). Which is what I want pretty much all the time, so my experience is very annoying now, each time I click inside a cell, I have to press one of those keys before being able to do anything. Restarting the jupyter server didn't help.
Anyone has an idea how I can restore defaults, i.e. go back to defaulting to edit mode?
(sorry, no screenshot because this is at my job and I am not allowed to share a screenshot. I am attaching a cursor that looks similar. Basically, instead of a simple vertical line, it's a solid green rectangle)

在Jupyter Notebook中,光标是一个绿色的矩形。

答案1

得分: 2

你的环境中似乎已安装了jupyterlab-vim(通过pip install --upgrade jupyterlab-vim正常安装的软件包)。

文档中建议使用Shift+Escape来退出Vim模式,或者尝试使用pip uninstall jupyterlab-vim来删除该软件包。

英文:

I think you have jupyterlab-vim installed in you environment ( it is installed as a normal package with pip install --upgrade jupyterlab-vim.

in the documentation it says to use Shift+ Escape to Leave Vim Mode

or try to delete the package with pip uninstall jupyterlab-vim

huangapple
  • 本文由 发表于 2023年5月7日 11:44:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76192108.html
匿名

发表评论

匿名网友

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

确定