You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried to run this code in IPython Qt Console (I mean outside Spyder with the IPython Qt console application which is shipped with v0.12)?
(I suspect an IPython bug/limitation)
This is fixed in the upcoming IPython 1.0 release. Please check this issue: ipython/ipython#2438 I also tested your example and now everything is working fine.
Summary: IPython console: multiprocessing print output goes to kernel not client (was: IPython console: subprocess output goes to kernel not client) Status: Fixed
From r.lup...@gmail.com on 2012-06-06T06:29:47Z
Spyder Version: 2.2.0dev (2162: re67793ec2995 )
Python Version: 2.7.2
Qt Version: 4.7.3, PyQt4 (API v2) 4.8.5 on Windows
What steps will reproduce the problem?
Normally standard output from scripts correctly ends up in the IPython console.
Using the multiprocessing module, standard output from subprocesses instead ends up in the kernel (external console) window.
For example, with the script below, "Starting" is printed to the IPython console, while the "hello world"s appear in the kernel window.
from multiprocessing import Process, Lock
def f(l, i):
l.acquire()
print 'hello world', i
l.release()
if name == 'main':
print "Starting"
lock = Lock()
for num in range(10):
Process(target=f, args=(lock, num)).start()
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1082
The text was updated successfully, but these errors were encountered: