英文:
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)
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论