From 7125d8537753106bc5885a906b8dfa90379e1091 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Mon, 2 Mar 2020 10:09:37 +0100 Subject: [PATCH] Add control channel --- ipykernel/inprocess/client.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ipykernel/inprocess/client.py b/ipykernel/inprocess/client.py index 2e562f04..5de4f774 100644 --- a/ipykernel/inprocess/client.py +++ b/ipykernel/inprocess/client.py @@ -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', @@ -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: