From 1468493467ab4b56916f68264728b97928f75764 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 8 Apr 2025 14:34:32 +0200 Subject: [PATCH] Fix blocking issue in Voila (nbclient case) --- jupyter_client/session.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/jupyter_client/session.py b/jupyter_client/session.py index c387cd06..83a46ca6 100644 --- a/jupyter_client/session.py +++ b/jupyter_client/session.py @@ -810,10 +810,6 @@ def send( # ZMQStreams and dummy sockets do not support tracking. track = False - if isinstance(stream, zmq.asyncio.Socket): - assert stream is not None # type:ignore[unreachable] - stream = zmq.Socket.shadow(stream.underlying) - if isinstance(msg_or_type, (Message, dict)): # We got a Message or message dict, not a msg_type so don't # build a new Message.