Watch long term process in Ipython notebook
问题 For now, after reconnect ipython notebook is not able to print any output from running kernel. I tried following work-around: import sys, time with open('foo.log','w') as sys.stdout: for i in range(5): print i time.sleep(1) everything is nice, I can see the process with tail -f foo.log , but at the end whole thing crashes and I get following error: ERROR:tornado.general:Uncaught exception, closing connection. Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/zmq