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) |
@@ -96,7 +96,7 b' class RichIPythonWidget(IPythonWidget):' | |||||
96 | """ |
|
96 | """ | |
97 | if not self._hidden and self._is_from_this_session(msg): |
|
97 | if not self._hidden and self._is_from_this_session(msg): | |
98 | content = msg['content'] |
|
98 | content = msg['content'] | |
99 |
prompt_number = content |
|
99 | prompt_number = content.get('execution_count', 0) | |
100 | data = content['data'] |
|
100 | data = content['data'] | |
101 | if data.has_key('image/svg+xml'): |
|
101 | if data.has_key('image/svg+xml'): | |
102 | self._pre_image_append(msg, prompt_number) |
|
102 | self._pre_image_append(msg, prompt_number) |
@@ -57,8 +57,7 b' class ZMQShellDisplayHook(DisplayHook):' | |||||
57 |
|
57 | |||
58 | def write_output_prompt(self): |
|
58 | def write_output_prompt(self): | |
59 | """Write the output prompt.""" |
|
59 | """Write the output prompt.""" | |
60 | if self.do_full_cache: |
|
60 | self.msg['content']['execution_count'] = self.prompt_count | |
61 | self.msg['content']['execution_count'] = self.prompt_count |
|
|||
62 |
|
61 | |||
63 | def write_format_data(self, format_dict): |
|
62 | def write_format_data(self, format_dict): | |
64 | _encode_binary(format_dict) |
|
63 | _encode_binary(format_dict) |
General Comments 0
You need to be logged in to leave comments.
Login now