[IPython-User] parallel computations on a global variable

Moritz Emanuel Beber moritz.beber@gmail....
Tue Feb 12 18:31:23 CST 2013

Little addendum:
> So basically, in your code all you need to add is:
> from IPython.parallel import require, interactive
> @interactive
> @require("numpy")
> def parallel_inner(i, j):
>     ...
The @interactive decorator had to be the inner one, i.e.,

def ...

works but not the other way round as you posted.

I used a non-blocking dview.push call which gave me a NameError since I 
called the function before the variable had 'arrived'.


More information about the IPython-User mailing list