首页 > 其他分享 >Jupyter notebook如何打印多个结果

Jupyter notebook如何打印多个结果

时间:2023-01-07 07:44:06浏览次数:43  
标签:node last ast InteractiveShell 打印 notebook Jupyter

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).

标签:node,last,ast,InteractiveShell,打印,notebook,Jupyter
From: https://www.cnblogs.com/xinkevinzhang/p/17032086.html

相关文章