Skip to content

Commit 1e6b71c

Browse files
authored
Merge pull request #177 from takluyver/signaltest-mk-displayhook
Make displayhook in signal test kernel app
2 parents 3b068f4 + 8120150 commit 1e6b71c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_client/tests/signalkernel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sys
1010
import time
1111

12+
from ipykernel.displayhook import ZMQDisplayHook
1213
from ipykernel.kernelbase import Kernel
1314
from ipykernel.kernelapp import IPKernelApp
1415

@@ -61,7 +62,8 @@ def kernel_info_request(self, *args, **kwargs):
6162
class SignalTestApp(IPKernelApp):
6263
kernel_class = SignalTestKernel
6364
def init_io(self):
64-
pass # disable stdout/stderr capture
65+
# Overridden to disable stdout/stderr capture
66+
self.displayhook = ZMQDisplayHook(self.session, self.iopub_socket)
6567

6668
if __name__ == '__main__':
6769
# make startup artificially slow,

0 commit comments

Comments
 (0)