Jupyter 简明教程

Jupyter QtConsole - Multiline Editing

多行编辑是 IPython 终端中不可用的特性之一。为了在单一输入单元中输入多条语句,在第一行后按下 ctrl+enter 。此后,仅仅按下回车即可在同一单元中添加新行。若要停止输入新行并运行单元,再次在结尾处按下回车键。单元将运行,并且输出将显示在下一个 out[] 单元中。

Multiline editing is one of the features which is not available in IPython terminal. In order to enter more than one statements in a single input cell, press ctrl+enter after the first line. Subsequently, just pressing enter will go on adding new line in the same cell. To stop entering new lines and running cell, press enter key one more time at the end. The cell will run and output will be displayed in next out[] cell.

multiline editing