阻止Jupyter Notebook将警告/状态更新打印到终端 [英] Stop Jupyter Notebook from printing warnings / status updates to terminal

查看:454
本文介绍了阻止Jupyter Notebook将警告/状态更新打印到终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢Jupyter的笔记本,但是它会在其启动的终端上打印很多更新.例如,每次手动或自动保存文件时,都会打印一行.这实际上使终端毫无用处.

I love Jupyter's Notebook, however, it prints many, many updates to the terminal it was started from. For e.g., every time a file is saved manually or automatically, a line is printed. It makes the terminal virtually useless.

我如何停止它?

推荐答案

import warnings; warnings.simplefilter('ignore')

这将帮助您摆脱常规警告.

This would help you get rid of normal warnings.

这篇关于阻止Jupyter Notebook将警告/状态更新打印到终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆