File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ def start(self):
108
108
self .log .debug ("jupyter run: executing `%s`" % filename )
109
109
with open (filename ) as fp :
110
110
cell = fp .read ()
111
- return_code = self .run_cell (cell )
111
+ return_code = self .execute_printing_output (cell )
112
112
if return_code :
113
113
raise Exception ("jupyter-run error running '%s'" % filename )
114
114
115
- def run_cell (self , cell ):
115
+ def execute_printing_output (self , cell ):
116
116
"""
117
117
Run a cell on a KernelClient
118
118
Any output from the cell will be displayed.
@@ -145,6 +145,8 @@ def run_cell(self, cell):
145
145
return_code = 1
146
146
else :
147
147
sys .stdout .write (content ['data' ].get ('text/plain' , '' ))
148
+ elif msg_type == 'aborted' :
149
+ return_code = 1
148
150
else :
149
151
pass
150
152
return return_code
You can’t perform that action at this time.
0 commit comments