##// END OF EJS Templates
add `%%px --local` for local execution...
MinRK -
Show More
@@ -70,6 +70,10 b' def exec_args(f):'
70 70 magic_arguments.argument('-t', '--targets', type=str,
71 71 help="specify the targets on which to execute",
72 72 ),
73 magic_arguments.argument('--local', action="store_const",
74 const=True, dest="local",
75 help="also execute the cell in the local namespace",
76 ),
73 77 magic_arguments.argument('--verbose', action="store_const",
74 78 const=True, dest="set_verbose",
75 79 help="print a message at each execution",
@@ -290,6 +294,8 b' class ParallelMagics(Magics):'
290 294 if args.targets:
291 295 save_targets = self.view.targets
292 296 self.view.targets = self._eval_target_str(args.targets)
297 if args.local:
298 self.shell.run_cell(cell)
293 299 try:
294 300 return self.parallel_execute(cell, block=args.block,
295 301 groupby=args.groupby,
General Comments 0
You need to be logged in to leave comments. Login now