[IPython-dev] How to get the notebook name/path in the kernel?

Thomas Kluyver takowl@gmail....
Wed Feb 26 12:11:03 CST 2014


On 26 February 2014 09:35, Konrad Hinsen <konrad.hinsen@fastmail.net> wrote:

> During initialization, my kernel needs to know the name and path of
> the notebook that it is attached to.  I don't see an obvious way to
> get this information.


I don't think there is a good way to get that: the design is specifically
that the kernel is an engine to run code, and should not know where that
code is coming from.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20140226/60608279/attachment.html 


More information about the IPython-dev mailing list