Reputation: 793
I love Jupyter Notebook. However, it prints many, many updates to the terminal it was started from. For example, every time a file is saved manually or automatically, a line is printed. It makes the terminal virtually useless.
How do I stop it?
Upvotes: 47
Views: 72462
Reputation: 7364
You can easily disable the warnings permanently by just adding the following code:
import warnings
warnings.filterwarnings('ignore')
to the following file:
~/.ipython/profile_default/startup/disable-warnings.py
Upvotes: 14
Reputation: 477
Add the following on the top of your code,
import warnings;
warnings.filterwarnings('ignore');
Upvotes: 1
Reputation: 23
You should try this:
import warnings
warnings.filterwarnings('ignore')
Upvotes: 0
Reputation: 579
3 lines ...
import warnings
warnings.filterwarnings('ignore')
warnings.simplefilter('ignore')
Upvotes: 0
Reputation: 1745
import warnings; warnings.simplefilter('ignore')
This would help you get rid of normal warnings.
Upvotes: 70