Skip to content

Commit c1dce80

Browse files
committed
Fix event pipe ZMQ context
1 parent c37329b commit c1dce80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/iostream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _event_pipe(self):
143143
event_pipe = self._local.event_pipe
144144
except AttributeError:
145145
# new thread, new event pipe
146-
ctx = self.socket.context
146+
ctx = zmq.Context(self.socket.context)
147147
event_pipe = ctx.socket(zmq.PUSH)
148148
event_pipe.linger = 0
149149
event_pipe.connect(self._event_interface)

0 commit comments

Comments
 (0)