Jupyter中清理一个代码块的输出

首先引入库:

import IPython.display as display

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

display.clear_output(wait=True)
发布了116 篇原创文章 · 获赞 13 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_36758914/article/details/104687405