Skip to content

Commit

Permalink
Added control channel to ZMQChannelsHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Jun 12, 2019
1 parent a403d59 commit f00c60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/services/kernels/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from ...base.handlers import APIHandler
from ...base.zmqhandlers import AuthenticatedZMQStreamHandler, deserialize_binary_message

import traceback

class MainKernelHandler(APIHandler):

Expand Down Expand Up @@ -124,7 +125,7 @@ def __repr__(self):
def create_stream(self):
km = self.kernel_manager
identity = self.session.bsession
for channel in ('shell', 'iopub', 'stdin'):
for channel in ('shell', 'control', 'iopub', 'stdin'):
meth = getattr(km, 'connect_' + channel)
self.channels[channel] = stream = meth(self.kernel_id, identity=identity)
stream.channel = channel
Expand Down

0 comments on commit f00c60f

Please sign in to comment.