Skip to content

Commit 56fdee2

Browse files
committed
Fix stdin zmq context
1 parent c1dce80 commit 56fdee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def init_sockets(self):
331331
self.shell_port = self._bind_socket(self.shell_socket, self.shell_port)
332332
self.log.debug("shell ROUTER Channel on port: %i" % self.shell_port)
333333

334-
self.stdin_socket = context.socket(zmq.ROUTER)
334+
self.stdin_socket = zmq.Context(context).socket(zmq.ROUTER)
335335
self.stdin_socket.linger = 1000
336336
self.stdin_port = self._bind_socket(self.stdin_socket, self.stdin_port)
337337
self.log.debug("stdin ROUTER Channel on port: %i" % self.stdin_port)

0 commit comments

Comments
 (0)