[IPython-dev] How to get the notebook name/path in the kernel?
Thu Feb 27 10:46:48 CST 2014
On 27 Feb 2014 01:18, "Konrad Hinsen" <email@example.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev