Commit 0f381465 authored by Theresa Pollinger's avatar Theresa Pollinger
Browse files

error output in plain text

parent 49e52b3f
......@@ -95,24 +95,24 @@ Otherwise, you can always answer with \LaTeX-type input.
self.state_machine.handle_state_dependent_input(arg)
if not silent:
#if self.outstream_name == "stderr": #TODO make errors markdown but red
# # string output
# stream_content = {'name': self.outstream_name, 'text': self.poutstring}
# self.send_response(self.iopub_socket, 'stream', stream_content)
if self.outstream_name == "stderr": #TODO make errors markdown but red
# string output
stream_content = {'name': self.outstream_name, 'text': self.poutstring}
self.send_response(self.iopub_socket, 'stream', stream_content)
# data_content = {
# "ename": "InterviewError",
# "evalue": self.poutstring,
# "traceback": [self.poutstring],
# }
# self.send_response(self.iopub_socket, 'error', data_content)
#else:
# for other mime types, cf http://ipython.org/ipython-doc/stable/notebook/nbformat.html
data_content = {"data": {
"text/markdown": self.poutstring,
},
"metadata": {}
}
self.send_response(self.iopub_socket, 'display_data', data_content)
else:
# for other mime types, cf. http://ipython.org/ipython-doc/stable/notebook/nbformat.html
data_content = {"data": {
"text/markdown": self.poutstring,
},
"metadata": {}
}
self.send_response(self.iopub_socket, 'display_data', data_content)
self.poutstring = ""
self.outstream_name = 'stdout'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment