vinbterm is nbterm with some keybinding modifications, and setting edit mode as default.
The command is remained as nbterm
, instead of "vinbterm".
Lets you view, edit and execute Jupyter Notebooks in the terminal.
pip install vinbterm
Open an interactive notebook:
$ nbterm my_notebook.ipynb
Run a notebook in batch mode:
$ nbterm --run my_notebook.ipynb
There are two modes: edit mode, and command mode.
i
: enter the edit mode, allowing to type into the cell.esc
: exit the edit mode and enter the command mode.
In command mode:
k
orup
: select cell above.j
ordown
: select cell below.ctrl-k
orctrl-up
: move cell above.ctrl-j
orctrl-down
: move cell below.a
: insert cell above.b
: insert cell below.d
: cut the cell.y
: copy the cell.ctrl-p
: paste cell above.p
: paste cell below.c
: set as code cell.r
: set as raw cell.m
: set as Markdown cell.l
: clear cell outputs.ctrl-e
: run cell.enter
orctrl-r
: run cell and select below.ctrl-w
orctrl-s
: save.ctrl-q
: exit.ctrl-h
: show help.