From eb79a90b31566be96c16fc58bc135b09bdb4130c 2013-02-09 21:40:06 From: MinRK Date: 2013-02-09 21:40:06 Subject: [PATCH] fix a few remaining KernelApp/IPKernelApp changes --- diff --git a/IPython/__init__.py b/IPython/__init__.py index 86d5610..8273205 100644 --- a/IPython/__init__.py +++ b/IPython/__init__.py @@ -68,7 +68,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs): The namespace to load into IPython user namespace (default: caller) kwargs : various, optional - Further keyword args are relayed to the KernelApp constructor, + Further keyword args are relayed to the IPKernelApp constructor, allowing configuration of the Kernel. Will only have an effect on the first embed_kernel call for a given process. diff --git a/IPython/frontend/consoleapp.py b/IPython/frontend/consoleapp.py index 8d76c10..c8b3393 100644 --- a/IPython/frontend/consoleapp.py +++ b/IPython/frontend/consoleapp.py @@ -194,7 +194,7 @@ class IPythonConsoleApp(Configurable): argv = sys.argv[1:] self.kernel_argv = swallow_argv(argv, self.frontend_aliases, self.frontend_flags) # kernel should inherit default config file from frontend - self.kernel_argv.append("--KernelApp.parent_appname='%s'"%self.name) + self.kernel_argv.append("--IPKernelApp.parent_appname='%s'" % self.name) def init_connection_file(self): """find the connection file, and load the info if found. @@ -244,7 +244,7 @@ class IPythonConsoleApp(Configurable): def load_connection_file(self): """load ip/port/hmac config from JSON connection file""" - # this is identical to KernelApp.load_connection_file + # this is identical to IPKernelApp.load_connection_file # perhaps it can be centralized somewhere? try: fname = filefind(self.connection_file, ['.', self.profile_dir.security_dir]) diff --git a/IPython/kernel/connect.py b/IPython/kernel/connect.py index 9a55d20..e895948 100644 --- a/IPython/kernel/connect.py +++ b/IPython/kernel/connect.py @@ -123,7 +123,7 @@ def get_connection_file(app=None): Parameters ---------- - app : KernelApp instance [optional] + app : IPKernelApp instance [optional] If unspecified, the currently running app will be used """ if app is None: diff --git a/IPython/kernel/zmq/embed.py b/IPython/kernel/zmq/embed.py index 0a3e50a..b9a0faf 100644 --- a/IPython/kernel/zmq/embed.py +++ b/IPython/kernel/zmq/embed.py @@ -25,7 +25,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs): The namespace to load into IPython user namespace (default: caller) kwargs : various, optional - Further keyword args are relayed to the KernelApp constructor, + Further keyword args are relayed to the IPKernelApp constructor, allowing configuration of the Kernel. Will only have an effect on the first embed_kernel call for a given process. diff --git a/IPython/kernel/zmq/kernelapp.py b/IPython/kernel/zmq/kernelapp.py index 9a2727c..7971b62 100644 --- a/IPython/kernel/zmq/kernelapp.py +++ b/IPython/kernel/zmq/kernelapp.py @@ -74,7 +74,7 @@ kernel_aliases.update({ 'transport': 'IPKernelApp.transport', }) if sys.platform.startswith('win'): - kernel_aliases['interrupt'] = 'KernelApp.interrupt' + kernel_aliases['interrupt'] = 'IPKernelApp.interrupt' kernel_flags = dict(base_flags) kernel_flags.update({