mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Added control channel to ZMQChannelsHandler
This commit is contained in:
parent
a403d59cb0
commit
61ae2d6778
@ -22,7 +22,6 @@ from notebook.utils import maybe_future, url_path_join, url_escape
|
||||
from ...base.handlers import APIHandler
|
||||
from ...base.zmqhandlers import AuthenticatedZMQStreamHandler, deserialize_binary_message
|
||||
|
||||
|
||||
class MainKernelHandler(APIHandler):
|
||||
|
||||
@web.authenticated
|
||||
@ -124,7 +123,7 @@ class ZMQChannelsHandler(AuthenticatedZMQStreamHandler):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user