Show More
@@ -45,10 +45,12 b' class ZMQHistoryManager(HistoryAccessorBase):' | |||||
45 | Load the history over ZMQ from the kernel. Wraps the history |
|
45 | Load the history over ZMQ from the kernel. Wraps the history | |
46 | messaging with loop to wait to get history results. |
|
46 | messaging with loop to wait to get history results. | |
47 | """ |
|
47 | """ | |
|
48 | history = [] | |||
|
49 | if hasattr(self.client, "history"): | |||
|
50 | ## In tests, KernelClient may not have a history method | |||
48 |
msg_id = self.client.history(raw=raw, output=output, |
|
51 | msg_id = self.client.history(raw=raw, output=output, | |
49 |
hist_access_type=hist_access_type, |
|
52 | hist_access_type=hist_access_type, | |
50 | **kwargs) |
|
53 | **kwargs) | |
51 | history = [] |
|
|||
52 | while True: |
|
54 | while True: | |
53 | try: |
|
55 | try: | |
54 | reply = self.client.get_shell_msg(timeout=1) |
|
56 | reply = self.client.get_shell_msg(timeout=1) |
General Comments 0
You need to be logged in to leave comments.
Login now