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

Thomas Kluyver takowl at gmail.com
Thu Feb 27 11:46:48 EST 2014


On 27 Feb 2014 01:18, "Konrad Hinsen" <konrad.hinsen at fastmail.net> wrote:
>
> I see your point view, which is that the notebook is just one way of
> interacting with a kernel. Given the I in IPython, that point of view
> is understandable.
>
> My point of view is different because my priority is documenting
> computations. I see a notebook as a document that describes what was
> done and which results were obtained. In the ActivePapers framework, I
> need to know where every bit of executed code comes from, because
> that's an important element in provenance tracking.
>
> A compromise that is compatible with both points of view is putting
> the provenance information for the code in the execute request sent to
> the kernel. This could be a notebook name, but also the process id of
> a qtconsole. It could be different for each execute request, and
> nothing would prevent a single notebook from sending requests to
> multiple kernels.

Why does the provenance tracking need to happen in the kernel? The notebook
server would seem like the better place to do it.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140227/83cfdcc6/attachment.html>


More information about the IPython-dev mailing list