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)