Skip to content

Commit

Permalink
Merge pull request #4672 from JohanMabille/control
Browse files Browse the repository at this point in the history
Added control channel to ZMQChannelsHandler
  • Loading branch information
SylvainCorlay authored Jul 8, 2019
2 parents 7223fdf + 9330418 commit 10318a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
'ipython_genutils',
'traitlets>=4.2.1',
'jupyter_core>=4.4.0',
'jupyter_client>=5.2.0',
'jupyter_client>=5.3.0',
'nbformat',
'nbconvert',
'ipykernel', # bless IPython kernel for now
Expand Down

0 comments on commit 10318a9

Please sign in to comment.