Show More
@@ -179,7 +179,6 b' class IPythonWidget(FrontendWidget):' | |||||
179 | """ Implemented to handle history tail replies, which are only supported |
|
179 | """ Implemented to handle history tail replies, which are only supported | |
180 | by the IPython kernel. |
|
180 | by the IPython kernel. | |
181 | """ |
|
181 | """ | |
182 | self.log.debug("history: %s", msg.get('content', '')) |
|
|||
183 | content = msg['content'] |
|
182 | content = msg['content'] | |
184 | if 'history' not in content: |
|
183 | if 'history' not in content: | |
185 | self.log.error("History request failed: %r"%content) |
|
184 | self.log.error("History request failed: %r"%content) | |
@@ -199,6 +198,7 b' class IPythonWidget(FrontendWidget):' | |||||
199 | # reset retry flag |
|
198 | # reset retry flag | |
200 | self._retrying_history_request = False |
|
199 | self._retrying_history_request = False | |
201 | history_items = content['history'] |
|
200 | history_items = content['history'] | |
|
201 | self.log.debug("Received history reply with %i entries", len(history_items)) | |||
202 | items = [] |
|
202 | items = [] | |
203 | last_cell = u"" |
|
203 | last_cell = u"" | |
204 | for _, _, cell in history_items: |
|
204 | for _, _, cell in history_items: |
@@ -391,11 +391,12 b' class Kernel(Configurable):' | |||||
391 |
|
391 | |||
392 | else: |
|
392 | else: | |
393 | hist = [] |
|
393 | hist = [] | |
394 |
|
|
394 | hist = list(hist) | |
|
395 | content = {'history' : hist} | |||
395 | content = json_clean(content) |
|
396 | content = json_clean(content) | |
396 | msg = self.session.send(self.shell_socket, 'history_reply', |
|
397 | msg = self.session.send(self.shell_socket, 'history_reply', | |
397 | content, parent, ident) |
|
398 | content, parent, ident) | |
398 | self.log.debug(str(msg)) |
|
399 | self.log.debug("Sending history reply with %i entries", len(hist)) | |
399 |
|
400 | |||
400 | def connect_request(self, ident, parent): |
|
401 | def connect_request(self, ident, parent): | |
401 | if self._recorded_ports is not None: |
|
402 | if self._recorded_ports is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now