[IPython-dev] running Terminal app with --pylab option by default.
MinRK
benjaminrk at gmail.com
Tue Aug 14 20:09:40 EDT 2012
On Tue, Aug 14, 2012 at 4:35 PM, Aaron Meurer <asmeurer at gmail.com> wrote:
> And to clarify, we don't want to import Numpy and all that other
> stuff. We just want to enable non-blocking plotting.
>
`--pylab` invokes the following method:
shell.enable_pylab(import_all=False) # import_all=True is the default, with
all of the imports
So the steps would be:
from IPython.frontend.terminal.ipapp import TerminalIPythonApp
# setup the app
app = TerminalIPythonApp.instance()
app.initialize(argv)
# enable pylab hookups
app.shell.enable_pylab(import_all=False)
# start the app
app.start()
>
> Aaron Meurer
>
> On Aug 14, 2012, at 11:20 AM, Bharath M R <catchmrbharath at gmail.com>
> wrote:
>
> > Hi,
> > At sympy, we have ``isympy``, which initiates a ``TerminalIPythonApp``
> > Recently we added a plotting module with matplotlib backend, and the
> plots
> > rendered are presently blocking. I would like to run ``--pylab`` option
> by default
> > whenever isympy is called, so that they are not blocking. This can be
> done by
> > setting the corresponding option in my ipython_profile, but what I need
> is the pylab
> > option to be enabled whenever isympy is run, for all the users. How
> should I set
> > the --pylab option in TerminalIPythonApp?
> >
> > Thanks for the help.
> > --
> > Bharath M R
> > 5th Year undergraduate student,
> > IIT Madras
> > catchmrbharath.github.com
> >
> >
> > _______________________________________________
> > 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/20120814/0d47760e/attachment.html>
More information about the IPython-dev
mailing list