I’m using IPython to develop a multi-threaded socket based client-server type thing. The problem is IPython tries to give it’s command prompt prompt before some of my threads have finished running. The debug text output of the thread is then lost.
Is there any way to have IPython only give me a new prompt when all the threads have finished running?
Thanks
Try
where
threadsis a list of yourthreading.Threadinstances. This will cause the main thread to wait until all worker threads are done.