From ff817d57714b61a30587af250b789d0abf32a605 2014-02-06 23:56:19 From: Christophe Pradal Date: 2014-02-06 23:56:19 Subject: [PATCH] Add kernel_info method to InProcessShellChannel --- diff --git a/IPython/kernel/inprocess/channels.py b/IPython/kernel/inprocess/channels.py index 252242f..59f72ef 100644 --- a/IPython/kernel/inprocess/channels.py +++ b/IPython/kernel/inprocess/channels.py @@ -128,6 +128,12 @@ class InProcessShellChannel(InProcessChannel): # FIXME: What to do here? raise NotImplementedError('Cannot shutdown in-process kernel') + def kernel_info(self): + """Request kernel info.""" + msg = self.client.session.msg('kernel_info_request') + self._dispatch_to_kernel(msg) + return msg['header']['msg_id'] + #-------------------------------------------------------------------------- # Protected interface #--------------------------------------------------------------------------