【发布时间】:2020-01-25 08:20:46
【问题描述】:
我希望一个单元格的输出很少。为此我使用:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
代码运行良好,但它给了我一些不需要的数据。
Out[1]: <Figure size 2500x800 with 0 Axes>
Out[1]: <matplotlib.axes._subplots.AxesSubplot at 0x1a22e8ca50>
Out[1]: Text(0.5, 1.0, 'Przetrwanie, (0 = Zmarli / 1 = Ocaleni)')
Out[1]: [Text(0, 0.5, 'Liczba')]
我可以使用一些标志选项,例如:'all', '最后的', 'last_expr', '没有任何', 'last_expr_or_assign'
但没有一个选项可以解决问题:/
有什么想法吗??
【问题讨论】:
标签: python python-3.x jupyter-notebook ipython jupyter