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