vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
176 stars 17 forks source link

%env --expect-error and papermill #281

Closed BoPeng closed 4 years ago

BoPeng commented 4 years ago

Papermill uses error iopub messages to decide if an error has happened. Although

%env --expect-error

changes

execute_reply = {'status': 'error'... }

to

execute_reply = {'status': 'ok'... }

Papermill will still stop because of the error message send to iopub by the kernels.

That is to say we will have to change error message to stream messages with name=stderr to make papermill work.