<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 4 mars 2015 à 21:14, Kenneth Tran <<a href="mailto:one@kentran.net">one@kentran.net</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">It seems that doing this is not the same as %pylab inline. I tried it but this line failed.<div><i>    plot(range(0,9))</i><br><div><br></div><div>I tried putting %pylab inline in the startup.ipy file but it doesn't work either.</div><div><br></div><div>Am I missing something?</div></div></div></blockquote><div><br></div><div>You should not use %pylab, or --pylab. </div><div>it is undocumented and deprecated.</div><div><br></div><div>That being said, </div><div><br></div><div>Do we support startup.ipy files ? </div><div>-- </div><div>M</div><br><blockquote type="cite"><div dir="ltr"><div><div><br></div><div>-K</div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 12:27 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><p style="margin:1.2em 0px!important">For completeness, you can create a startup file that always enables inline matplotlib with:</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;background-color:rgb(248,248,248)">echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py
</code></pre><div title="MDH:Rm9yIGNvbXBsZXRlbmVzcywgeW91IGNhbiBjcmVhdGUgYSBzdGFydHVwIGZpbGUgdGhhdCBhbHdh
eXMgZW5hYmxlcyBpbmxpbmUgbWF0cGxvdGxpYiB3aXRoOjxkaXY+PGJyPjwvZGl2PjxkaXY+Jm5i
c3A7ICZuYnNwOyBlY2hvICJnZXRfaXB5dGhvbigpLmVuYWJsZV9tYXRwbG90bGliKCdpbmxpbmUn
KSIgJmd0OyB+Ly5pcHl0aG9uL3Byb2ZpbGVfZGVmYXVsdC9zdGFydHVwL21hdHBsb3RsaWJfaW5s
aW5lLnB5PC9kaXY+" style="min-height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 12:24 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">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.<span><font color="#888888"><div><br></div><div>-MinRK</div></font></span></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 12:19 PM, John Omernik <span dir="ltr"><<a href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am getting<br>
<br>
[C 14:16:28.361 NotebookApp] Bad config encountered during initialization:<br>
<br>
[C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib'<br>
<br>
Any thoughts? Do I need to change something to have the same affect?<br>
<br>
Thanks<br>
<br>
John<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>
</div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div></div></div></div>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>