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 61ae2d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions notebook/services/kernels/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from ...base.handlers import APIHandler
from ...base.zmqhandlers import AuthenticatedZMQStreamHandler, deserialize_binary_message


class MainKernelHandler(APIHandler):

@web.authenticated
Expand Down Expand Up @@ -124,7 +123,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 61ae2d6

Please sign in to comment.