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

查看:35
本文介绍了阻止 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天全站免登陆