Show More
@@ -214,7 +214,7 b' class IPythonWidget(FrontendWidget):' | |||||
214 | self.log.debug("pyout: %s", msg.get('content', '')) |
|
214 | self.log.debug("pyout: %s", msg.get('content', '')) | |
215 | if not self._hidden and self._is_from_this_session(msg): |
|
215 | if not self._hidden and self._is_from_this_session(msg): | |
216 | content = msg['content'] |
|
216 | content = msg['content'] | |
217 |
prompt_number = content |
|
217 | prompt_number = content.get('execution_count',0) | |
218 | data = content['data'] |
|
218 | data = content['data'] | |
219 | if data.has_key('text/html'): |
|
219 | if data.has_key('text/html'): | |
220 | self._append_plain_text(self.output_sep, True) |
|
220 | self._append_plain_text(self.output_sep, True) |
@@ -71,7 +71,7 b' class RichIPythonWidget(IPythonWidget):' | |||||
71 | """ |
|
71 | """ | |
72 | if not self._hidden and self._is_from_this_session(msg): |
|
72 | if not self._hidden and self._is_from_this_session(msg): | |
73 | content = msg['content'] |
|
73 | content = msg['content'] | |
74 |
prompt_number = content |
|
74 | prompt_number = content.get('execution_count',0) | |
75 | data = content['data'] |
|
75 | data = content['data'] | |
76 | if data.has_key('image/svg+xml'): |
|
76 | if data.has_key('image/svg+xml'): | |
77 | self.log.debug("pyout: %s", msg.get('content', '')) |
|
77 | self.log.debug("pyout: %s", msg.get('content', '')) |
General Comments 0
You need to be logged in to leave comments.
Login now