File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,15 @@ def exec_args(f):
106
106
),
107
107
magic_arguments .argument (
108
108
'--stream' ,
109
- action = "store_true" ,
110
- default = True ,
109
+ action = "store_const" ,
110
+ const = True ,
111
+ dest = 'stream' ,
111
112
help = "stream stdout/stderr in real-time (only valid when using blocking execution)" ,
112
113
),
113
114
magic_arguments .argument (
114
115
'--no-stream' ,
115
- action = "store_false" ,
116
+ action = "store_const" ,
117
+ const = False ,
116
118
dest = 'stream' ,
117
119
help = "do not stream stdout/stderr in real-time" ,
118
120
),
@@ -218,6 +220,8 @@ class ParallelMagics(Magics):
218
220
last_result = None
219
221
# verbose flag
220
222
verbose = False
223
+ # streaming output flag
224
+ stream_ouput = True
221
225
222
226
def __init__ (self , shell , view , suffix = '' ):
223
227
self .view = view
@@ -261,6 +265,8 @@ def pxconfig(self, line):
261
265
self .view .block = args .block
262
266
if args .set_verbose is not None :
263
267
self .verbose = args .set_verbose
268
+ if args .stream is not None :
269
+ self .stream_ouput = args .stream
264
270
265
271
@magic_arguments .magic_arguments ()
266
272
@output_args
@@ -316,6 +322,7 @@ def parallel_execute(
316
322
317
323
# defaults:
318
324
block = self .view .block if block is None else block
325
+ stream_output = self .stream_ouput if stream_output is None else stream_output
319
326
320
327
base = "Parallel" if block else "Async parallel"
321
328
You can’t perform that action at this time.
0 commit comments