##// END OF EJS Templates
don't wrap in-process init in context manager...
Min RK -
Show More
@@ -52,10 +52,7 b' class InProcessKernel(IPythonKernel):'
52 stdin_socket = Instance(DummySocket, ())
52 stdin_socket = Instance(DummySocket, ())
53
53
54 def __init__(self, **traits):
54 def __init__(self, **traits):
55 # When an InteractiveShell is instantiated by our base class, it binds
55 super(InProcessKernel, self).__init__(**traits)
56 # the current values of sys.stdout and sys.stderr.
57 with self._redirected_io():
58 super(InProcessKernel, self).__init__(**traits)
59
56
60 self.iopub_socket.on_trait_change(self._io_dispatch, 'message_sent')
57 self.iopub_socket.on_trait_change(self._io_dispatch, 'message_sent')
61 self.shell.kernel = self
58 self.shell.kernel = self
General Comments 0
You need to be logged in to leave comments. Login now