【发布时间】:2017-08-04 08:06:28
【问题描述】:
我刚开始使用 ipython/jupyter 笔记本。 Shift-Enter(运行当前单元格)和 Enter(插入换行符)命令使用起来令人沮丧。我想在编辑模式下交换这两个输入的命令。
所以:
Shift-Enter:(插入换行符)
输入:(运行当前单元格)
有没有办法重新映射 jupyter notebook 的命令?可能是配置文件?听起来 ipython notebook 并不总是以这种方式工作(Enter in the IPython console inserts new line instead of executing current line after kernel restart #2696)。链接的github问题的解决方案似乎是“只需使用shift-enter”,我无法在google上找到解决方案。
我有以下版本:
ipykernel (4.5.2)
ipython (5.3.0)
jupyter (1.0.0)
notebook (4.4.1)
【问题讨论】:
-
不是要搞死灵术,但由于大多数即时通讯工具都使用它交换,我会对答案非常感兴趣。
标签: ipython ipython-notebook jupyter-notebook