Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could use Vim (-like bindings) in ipython notebook. Any workaround for Jupyter?

It was possible to use codemirror's vim mode in ipython notebook by generally following the way explained here and I was enjoying it, but in 2.x it's not possible because the notebook's interface "steals" escape key. In fact, "Esc" in codemirror's vim mode is Ctrl-c, which is not working nevertheless.

I don't know anything about Javascript, but it seems codemirror's vim.js located in

...\IPython\html\static\components\codemirror

somehow maps Ctrl-c to Esc, but this Esc is presumably taken by ipython notebook.

Mixing ipython notebook and vim keyboard binding was a great environment. Is there any workaround in 2.x? Because of this, I'm still using 1.2.1.

EDIT (Solution to 3.x/Jupyter):

~~Vimception does not work on 3.x(Jupyter) but I found that this guy did a great job. This works perfectly.~~

EDIT2

Just see @Λlisue's answer. He deserves +100.

like image 718
akai Avatar asked Aug 06 '14 10:08

akai


1 Answers

Recently I made a new plugin for enabling Vim key binding in Jupyter. Try https://github.com/lambdalisue/jupyter-vim-binding

like image 54
Λlisue Avatar answered Oct 06 '22 00:10

Λlisue