From 88c8db5ad26f38fcc497b60287185b2e5d6dedab Mon Sep 17 00:00:00 2001 From: Zach Sailer Date: Wed, 23 Nov 2022 08:26:49 -0800 Subject: [PATCH] ports change bug --- jupyter_server/services/kernels/connection/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_server/services/kernels/connection/channels.py b/jupyter_server/services/kernels/connection/channels.py index f0f285fa21..9b679a21b1 100644 --- a/jupyter_server/services/kernels/connection/channels.py +++ b/jupyter_server/services/kernels/connection/channels.py @@ -333,7 +333,7 @@ def connect(self): buffer_info = self.multi_kernel_manager.get_buffer(self.kernel_id, self.session_key) if buffer_info and buffer_info["session_key"] == self.session_key: self.log.info("Restoring connection for %s", self.session_key) - if self.kernel_manager.ports_changed(self.kernel_id): + if self.multi_kernel_manager.ports_changed(self.kernel_id): # If the kernel's ports have changed (some restarts trigger this) # then reset the channels so nudge() is using the correct iopub channel self.create_stream()