Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control channel #489

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ipykernel/inprocess/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class InProcessKernelClient(KernelClient):
shell_channel_class = Type(InProcessChannel)
iopub_channel_class = Type(InProcessChannel)
stdin_channel_class = Type(InProcessChannel)
control_channel_class = Type(InProcessChannel)
hb_channel_class = Type(InProcessHBChannel)

kernel = Instance('ipykernel.inprocess.ipkernel.InProcessKernel',
Expand Down Expand Up @@ -82,6 +83,12 @@ def stdin_channel(self):
self._stdin_channel = self.stdin_channel_class(self)
return self._stdin_channel

@property
def control_channel(self):
if self._control_channel is None:
self._control_channel = self.control_channel_class(self)
return self._control_channel

@property
def hb_channel(self):
if self._hb_channel is None:
Expand Down