Stop Jupyter Notebook from printing warnings / sta

2019-03-23 23:02发布

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.

How do I stop it?

3条回答
Summer. ? 凉城
2楼-- · 2019-03-23 23:38

You Should try this: import warnings warnings.filterwarnings('ignore')

查看更多
劫难
3楼-- · 2019-03-23 23:57

Add following on top of your code,

import warnings;
warnings.filterwarnings('ignore');
查看更多
乱世女痞
4楼-- · 2019-03-23 23:59
import warnings; warnings.simplefilter('ignore')

This should make you get rid of normal warnings.

查看更多
登录 后发表回答