How to capture the output of backend thread in jupyter_client
9 views
Skip to first unread message
Jeff Zhang
unread,
Aug 12, 2017, 8:16:53 AM8/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
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 importThread
def worker(): for i in range(3): time.sleep(1) print(i)