Jupyter notebook如何打印多个结果

Jupyter notebook如何打印多个结果

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

InteractiveShell.ast_node_interactivity='all',重要参数可从下面选项选择:

ast_node_interactivity¶
‘all’, ‘last’, ‘last_expr’ or ‘none’, ‘last_expr_or_assign’ specifying which nodes should be run interactively (displaying output from expressions).
posted @ 2023-01-07 07:31  xinkevinzhang  阅读(190)  评论(0)    收藏  举报