[IPython-user] Ipython and multiprocessing

Michael Schmuker schmuker@gmail....
Wed Dec 17 04:02:46 CST 2008

Dear ipython-users,

pool.py contains a minimal example for the usage of multiprocessing:

from multiprocessing import Pool

def f(x):
        return x*x

if __name__ == '__main__':
        pool = Pool(processes = 2)
        result = pool.apply_async(f, (10,))
        print result.get()10:55:00

With standard python 2.5 it works:

micha@endlich:~/Desktop> python pool.py

With ipython 0.9.1 I first get an PicklingError and the console hangs. 
Hitting ^C then raises another error, and the only way to get my 
terminal back is via ^\. Console log is attached.

Any ideas what's going wrong here?

Thanks in advance,


Michael Schmuker
Freie Universität Berlin, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pool.py
Type: application/x-python
Size: 168 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20081217/c0c12a53/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Console.log
Type: text/x-log
Size: 2174 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20081217/c0c12a53/attachment-0001.bin 

More information about the IPython-user mailing list