diff --git a/ipykernel/inprocess/ipkernel.py b/ipykernel/inprocess/ipkernel.py index 0e86c8f6d..9a10117eb 100644 --- a/ipykernel/inprocess/ipkernel.py +++ b/ipykernel/inprocess/ipkernel.py @@ -131,7 +131,7 @@ def _redirected_io(self): def _io_dispatch(self, change): """ Called when a message is sent to the IO socket. """ - ident, msg = self.session.recv(self.iopub_socket, copy=False) + ident, msg = self.session.recv(self.iopub_socket.io_thread.socket, copy=False) for frontend in self.frontends: frontend.iopub_channel.call_handlers(msg)