From f063e9d7c57e857a646297f24023c25ab8491fc2 2014-07-07 19:04:58 From: MinRK Date: 2014-07-07 19:04:58 Subject: [PATCH] fix Session inheritance for frontends with `--existing` The Client was getting a new Session without the connection info loaded from the file, which would cause `Invalid Signature` errors to be logged, and no prompt to appear in the frontend. --- diff --git a/IPython/consoleapp.py b/IPython/consoleapp.py index 10aee3d..c7c5f0e 100644 --- a/IPython/consoleapp.py +++ b/IPython/consoleapp.py @@ -287,6 +287,7 @@ class IPythonConsoleApp(ConnectionFileMixin): try: self.kernel_manager = self.kernel_manager_class( ip=self.ip, + session=self.session, transport=self.transport, shell_port=self.shell_port, iopub_port=self.iopub_port, @@ -324,6 +325,7 @@ class IPythonConsoleApp(ConnectionFileMixin): self.kernel_client = self.kernel_manager.client() else: self.kernel_client = self.kernel_client_class( + session=self.session, ip=self.ip, transport=self.transport, shell_port=self.shell_port,