I use jupyter_client to execute a piece of code and get its output.  It 
works for most of the cases, but doens't work when my code has a backend 
thread.  e.g. the following code start a thread, but I could not get the 
output via jupyter_client. Does anyone know how can I get the output of 
this case ? Thanks


import time
from threading import Thread


def worker():
    for i in range(3):
        time.sleep(1)
        print(i)
        
t = Thread(target=worker)
t.start()

-- 
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/0e139bcd-9421-4040-a540-803373cc4865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to