艾玛,真的很神奇啊,使用pip install nbterm
进行安装。由于是命令行,没有按钮,所以必须记住快捷键。
使用nbterm my_notebook.ipynb可以创建一个新的文本。
1. 模式切换
首先是模式切换:
- enter: 进入编辑模式
- esc: 进入控制模式
两者的区别在于当前行的颜色,编辑模式是白色,控制模式是全黑。
比如下面是控制模式:
下面是编辑模式:
2. 控制模式
控制模式的快捷键如下:
up: select cell above.
down: select cell below.
ctrl-up: move cell above.
ctrl-down: move cell below.
a: insert cell above.
b: insert cell below.
x: cut the cell.
c: copy the cell.
ctrl-v: paste cell above.
v: paste cell below.
o: set as code cell.
m: set as Markdown cell.
l: clear cell outputs.
ctrl-e: run cell.
ctrl-r: run cell and select below.
ctrl-s: save.
ctrl-q: exit.
ctrl-h: show help.