We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3654534 commit d812555Copy full SHA for d812555
jupyter_client/runapp.py
@@ -136,17 +136,12 @@ def execute_printing_output(self, cell):
136
elif msg_type == 'stream':
137
stream = getattr(sys, content['name'])
138
stream.write(content['text'])
139
- # TODO: remove this when all kernels use error msg_type:
140
- if content['name'] == "stderr":
141
- return_code = 1
142
elif msg_type in ('display_data', 'execute_result', 'error'):
143
if msg_type == 'error':
144
print('\n'.join(content['traceback']), file=sys.stderr)
145
return_code = 1
146
else:
147
sys.stdout.write(content['data'].get('text/plain', ''))
148
- elif msg_type == 'aborted':
149
150
151
pass
152
return return_code
0 commit comments