Jupyter 清理输出信息

resource

Jupyter中清理一个代码块的输出_cofisher的博客-CSDN博客

需求

输出信息过多会大致文件size变大,需要及时清理output信息。便于阅读notebook。

How to do

首先引入库:

import IPython.display as display

然后在要清理输出的代码块中执行:

display.clear_output(wait=True)

你可能感兴趣的:(办公软件,python)