<br><br><div class="gmail_quote">On Tue, Aug 14, 2012 at 4:35 PM, Aaron Meurer <span dir="ltr"><<a href="mailto:asmeurer@gmail.com" target="_blank">asmeurer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

And to clarify, we don't want to import Numpy and all that other<br>
stuff. We just want to enable non-blocking plotting.<br></blockquote><div><br></div><div>`--pylab` invokes the following method:</div><div><br></div><div>shell.enable_pylab(import_all=False) # import_all=True is the default, with all of the imports</div>

<div><br></div><div>So the steps would be:</div><div><br></div><div>from IPython.frontend.terminal.ipapp import TerminalIPythonApp</div><div># setup the app</div><div>app = TerminalIPythonApp.instance()</div><div>app.initialize(argv)</div>

<div><br></div><div># enable pylab hookups</div><div>app.shell.enable_pylab(import_all=False)</div><div><br></div><div># start the app</div><div>app.start()</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Aaron Meurer<br>
<div><div class="h5"><br>
On Aug 14, 2012, at 11:20 AM, Bharath M R <<a href="mailto:catchmrbharath@gmail.com">catchmrbharath@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> At sympy, we have ``isympy``, which initiates a ``TerminalIPythonApp``<br>
> Recently we added a plotting module with matplotlib backend, and the plots<br>
> rendered are presently blocking. I would like to run ``--pylab`` option by default<br>
> whenever isympy is called, so that they are not blocking. This can be done by<br>
> setting the corresponding option in my ipython_profile, but what I need is the pylab<br>
> option to be enabled whenever isympy is run, for all the users. How should I set<br>
> the --pylab option in TerminalIPythonApp?<br>
><br>
> Thanks for the help.<br>
> --<br>
> Bharath M R<br>
> 5th Year undergraduate student,<br>
> IIT Madras<br>
> <a href="http://catchmrbharath.github.com" target="_blank">catchmrbharath.github.com</a><br>
><br>
><br>
</div></div>> _______________________________________________<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>
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>
</blockquote></div><br>