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
Comments
Post a Comment