IPython uses global state to identify which request produced which output.
This is the `parent_header` in the kernel. The result is that, as far as
the messages are concerned, output produced in a background thread will
always be associated with the most recently executed cell.

If you know what you want, you can, however, explicitly associate the
outputs of a thread with a particular parent. Doing so, however, may result
in a race condition where it appears that the thread owns output produced
in the main thread, depending on how output is captured or redirected.

-Min

On Tue, Oct 10, 2017 at 8:33 AM, Jeff Zhang <[email protected]> wrote:

> I would submit one piece of python to ipython kernel. And this piece of
> kernel would run a thread to generate output continuously. Then What kind
> of ipython api I can use to get the output of this daemon thread ? Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/31687feb-9acf-4d9a-b7d1-e02e43df5894%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/31687feb-9acf-4d9a-b7d1-e02e43df5894%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAHNn8BVtbd578LpKQnJqJnGQtT4b1Kw-GBzyoz5VsEAra_6okA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to