[IPython-dev] Best way to detect IPython notebook

Thomas Kluyver takowl at gmail.com
Thu Feb 20 14:41:56 EST 2014

On 20 February 2014 08:45, TARUN GABA <tarun.gaba7 at gmail.com> wrote:

>     if get_ipython().config['KernelApp']['parent_appname'] ==
> 'ipython-notebook':

Be aware that:
- This only tells you what started the kernel - you can start a kernel with
the notebook and attach a Qt console to it, and there's no good way to tell
which one has sent a piece of code.
- We want to get rid of that value eventually:

As Matthias mentioned, can you tell us a bit more about what it is that
you're trying to do?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140220/5b9aea40/attachment.html>

More information about the IPython-dev mailing list