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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -