jupyter每行变量值显示

173 阅读1分钟

jupyter默认显示最后一个变量,可通过如下更改:

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all" 

在这里插入图片描述

参看文档