Show More
@@ -70,6 +70,10 b' def exec_args(f):' | |||||
70 | magic_arguments.argument('-t', '--targets', type=str, |
|
70 | magic_arguments.argument('-t', '--targets', type=str, | |
71 | help="specify the targets on which to execute", |
|
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 | magic_arguments.argument('--verbose', action="store_const", |
|
77 | magic_arguments.argument('--verbose', action="store_const", | |
74 | const=True, dest="set_verbose", |
|
78 | const=True, dest="set_verbose", | |
75 | help="print a message at each execution", |
|
79 | help="print a message at each execution", | |
@@ -290,6 +294,8 b' class ParallelMagics(Magics):' | |||||
290 | if args.targets: |
|
294 | if args.targets: | |
291 | save_targets = self.view.targets |
|
295 | save_targets = self.view.targets | |
292 | self.view.targets = self._eval_target_str(args.targets) |
|
296 | self.view.targets = self._eval_target_str(args.targets) | |
|
297 | if args.local: | |||
|
298 | self.shell.run_cell(cell) | |||
293 | try: |
|
299 | try: | |
294 | return self.parallel_execute(cell, block=args.block, |
|
300 | return self.parallel_execute(cell, block=args.block, | |
295 | groupby=args.groupby, |
|
301 | groupby=args.groupby, |
General Comments 0
You need to be logged in to leave comments.
Login now