Jupyter 简明教程
IPython - History Command
IPython 保存当前会话中的命令及其结果。我们可以按向上键和向下键滚动浏览之前的命令。
IPython preserves both the commands and their results of the current session. We can scroll through the previous commands by pressing the up and down keys.
此外,最后三个输出对象存储在特殊变量 , _ and _ 中。 history 魔术命令显示当前会话中的上一条命令,如下图中的屏幕截图所示 −
Besides, last three objects of output are stored in special variables , _ and _. The history magic command shows previous commands in current session as shown in the screenshot given below −
