Show More
@@ -764,7 +764,7 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||||
764 | def _process_execute_ok(self, msg): |
|
764 | def _process_execute_ok(self, msg): | |
765 | """ Process a reply for a successful execution request. |
|
765 | """ Process a reply for a successful execution request. | |
766 | """ |
|
766 | """ | |
767 |
payload = msg['content'] |
|
767 | payload = msg['content'].get('payload', []) | |
768 | for item in payload: |
|
768 | for item in payload: | |
769 | if not self._process_execute_payload(item): |
|
769 | if not self._process_execute_payload(item): | |
770 | warning = 'Warning: received unknown payload of type %s' |
|
770 | warning = 'Warning: received unknown payload of type %s' |
@@ -205,7 +205,7 b' class ZMQTerminalInteractiveShell(TerminalInteractiveShell):' | |||||
205 | return |
|
205 | return | |
206 | elif status == 'ok': |
|
206 | elif status == 'ok': | |
207 | # handle payloads |
|
207 | # handle payloads | |
208 |
for item in content[ |
|
208 | for item in content.get('payload', []): | |
209 | source = item['source'] |
|
209 | source = item['source'] | |
210 | if source == 'page': |
|
210 | if source == 'page': | |
211 | page.page(item['data']['text/plain']) |
|
211 | page.page(item['data']['text/plain']) |
General Comments 0
You need to be logged in to leave comments.
Login now