[IPython-dev] iPython 3.0-dev --matplotlib inline
Matt Craig
mattwcraig at gmail.com
Thu Mar 5 08:44:50 EST 2015
It seems that doing this is not the same as %pylab inline. I tried it but this line failed. plot(range(0,9))
Hi Ken,
You also need this:
import matplotlib.pyplot as plt
Then
plt.plot(range(0, 9))
Matt
—
Sent from Mailbox
On Wednesday, Mar 4, 2015 at 11:15 PM, Kenneth Tran <one at kentran.net>, wrote:
It seems that doing this is not the same as %pylab inline. I tried it but this line failed.
plot(range(0,9))
I tried putting %pylab inline in the startup.ipy file but it doesn't work either.
Am I missing something?
-K
On Fri, Feb 6, 2015 at 12:27 PM, MinRK <benjaminrk at gmail.com> wrote:
For completeness, you can create a startup file that always enables inline matplotlib with:
echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py
On Fri, Feb 6, 2015 at 12:24 PM, MinRK <benjaminrk at gmail.com> wrote:
Passing kernel arguments on the notebook server CLI was deprecated in 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your notebook to set up matplotlib, or enable matplotlib in your `ipython_config.py` or startup files in your IPython profile.
On Fri, Feb 6, 2015 at 12:19 PM, John Omernik <john at omernik.com> wrote:
In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am getting
[C 14:16:28.361 NotebookApp] Bad config encountered during initialization:
[C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib'
Any thoughts? Do I need to change something to have the same affect?
Thanks
John
_______________________________________________
IPython-dev mailing list
IPython-dev at scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-dev
_______________________________________________
IPython-dev mailing list
IPython-dev at scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150305/bbc9aef7/attachment.html>
More information about the IPython-dev
mailing list