From c1dce807d3172942ab2bb11a48c5b07ccf7542ba Mon Sep 17 00:00:00 2001 From: David Brochart Date: Wed, 13 Mar 2024 17:02:51 +0100 Subject: [PATCH] Fix event pipe ZMQ context --- ipykernel/iostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipykernel/iostream.py b/ipykernel/iostream.py index 9a3bbb31..ea70831b 100644 --- a/ipykernel/iostream.py +++ b/ipykernel/iostream.py @@ -143,7 +143,7 @@ def _event_pipe(self): event_pipe = self._local.event_pipe except AttributeError: # new thread, new event pipe - ctx = self.socket.context + ctx = zmq.Context(self.socket.context) event_pipe = ctx.socket(zmq.PUSH) event_pipe.linger = 0 event_pipe.connect(self._event_interface)