[IPython-dev] QtConsole signal handling
Fri Jul 13 10:51:48 CDT 2012
On 13 July 2012 10:45, Tiago Coutinho <firstname.lastname@example.org> wrote:
> I know how to check for pylab mode:
> app = IPython.Application.instance()
> app.pylab == "qt"
> ... but how do I find out which is the fronted being used?
Do you need to? If the difference is only with the inline matplotlib
backend, you can check for that. The terminal can't use the inline
backend, so if the inline backend is in use, it must be a kernel for
an advanced frontend (Qt console, notebook, etc.)
Also, remember that the user can start pylab mode after the
application starts via the %pylab magic. I don't know if that's
relevant in your case or not.
More information about the IPython-dev