From 82bf50c10fcf1e74e0559c96a5bdc53a410e4a96 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 22 Oct 2024 14:51:02 +0200 Subject: [PATCH] socket must be None, not shell_socket for default shell --- ipykernel/kernelbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipykernel/kernelbase.py b/ipykernel/kernelbase.py index 99358f9b..c6b18eb7 100644 --- a/ipykernel/kernelbase.py +++ b/ipykernel/kernelbase.py @@ -412,7 +412,7 @@ async def shell_main(self, subshell_id: str | None): else: assert subshell_id is None assert threading.current_thread() == threading.main_thread() - socket = self.shell_socket + socket = None async with create_task_group() as tg: tg.start_soon(self.process_shell, socket)