Issue
Currently in IPython
, when you call %pylab inline
or %matplotlib inline
the following message displays under the code block.
"Populating the interactive namespace from numpy and matplotlib"
How I can suppress this message from being displayed?
Solution
I don't think there's a builtin way of suppressing that message since if you look at the %pylab magic function in this file you can see that the print statement is hard coded in there.
If this is a one-off kind of thing you can simply comment/remove that print line from your local library. (Typically it would be found at /usr/local/lib/python2.7/dist-packages/IPython/core/magics/pylab.py
.) Or possibly redirect stdout to devnull or something like that.
Answered By - toes
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.