python - IPython Cell Magic to Run this Cell in Client and in All Engines -


in ipython parallel execution have multiple engines. jobs dispatched them using: %%px cell magics set environment in clients , using directview map_sync run various experiments.

the experiments return named-tuple of results. named-tuple need declared in both client , in each engine.

currently each time run it, run twice, 1 %%px , once without.

is there flag of %%px make run both locally , in each engine?

as of ipython 1.0, can instruct %%px execute cell locally. done using "--local" flag.

%%px --local

http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/parallel%20computing/parallel%20magics.ipynb


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -