From 7631ed09ead0fcb92378a233b367ed2d78e8c8b9 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Fri, 4 Dec 2020 23:57:24 +0100 Subject: [PATCH] Start IOPub first --- jupyter_client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter_client/client.py b/jupyter_client/client.py index 347766b29..86de84c25 100644 --- a/jupyter_client/client.py +++ b/jupyter_client/client.py @@ -102,11 +102,11 @@ def start_channels(self, shell=True, iopub=True, stdin=True, hb=True, control=Tr :meth:`start_kernel`. If the channels have been stopped and you call this, :class:`RuntimeError` will be raised. """ + if iopub: + self.iopub_channel.start() if shell: self.shell_channel.start() self.kernel_info() - if iopub: - self.iopub_channel.start() if stdin: self.stdin_channel.start() self.allow_stdin = True