##// END OF EJS Templates
fix a few remaining KernelApp/IPKernelApp changes
MinRK -
Show More
@@ -68,7 +68,7 b' def embed_kernel(module=None, local_ns=None, **kwargs):'
68 68 The namespace to load into IPython user namespace (default: caller)
69 69
70 70 kwargs : various, optional
71 Further keyword args are relayed to the KernelApp constructor,
71 Further keyword args are relayed to the IPKernelApp constructor,
72 72 allowing configuration of the Kernel. Will only have an effect
73 73 on the first embed_kernel call for a given process.
74 74
@@ -194,7 +194,7 b' class IPythonConsoleApp(Configurable):'
194 194 argv = sys.argv[1:]
195 195 self.kernel_argv = swallow_argv(argv, self.frontend_aliases, self.frontend_flags)
196 196 # kernel should inherit default config file from frontend
197 self.kernel_argv.append("--KernelApp.parent_appname='%s'"%self.name)
197 self.kernel_argv.append("--IPKernelApp.parent_appname='%s'" % self.name)
198 198
199 199 def init_connection_file(self):
200 200 """find the connection file, and load the info if found.
@@ -244,7 +244,7 b' class IPythonConsoleApp(Configurable):'
244 244
245 245 def load_connection_file(self):
246 246 """load ip/port/hmac config from JSON connection file"""
247 # this is identical to KernelApp.load_connection_file
247 # this is identical to IPKernelApp.load_connection_file
248 248 # perhaps it can be centralized somewhere?
249 249 try:
250 250 fname = filefind(self.connection_file, ['.', self.profile_dir.security_dir])
@@ -123,7 +123,7 b' def get_connection_file(app=None):'
123 123
124 124 Parameters
125 125 ----------
126 app : KernelApp instance [optional]
126 app : IPKernelApp instance [optional]
127 127 If unspecified, the currently running app will be used
128 128 """
129 129 if app is None:
@@ -25,7 +25,7 b' def embed_kernel(module=None, local_ns=None, **kwargs):'
25 25 The namespace to load into IPython user namespace (default: caller)
26 26
27 27 kwargs : various, optional
28 Further keyword args are relayed to the KernelApp constructor,
28 Further keyword args are relayed to the IPKernelApp constructor,
29 29 allowing configuration of the Kernel. Will only have an effect
30 30 on the first embed_kernel call for a given process.
31 31
@@ -74,7 +74,7 b' kernel_aliases.update({'
74 74 'transport': 'IPKernelApp.transport',
75 75 })
76 76 if sys.platform.startswith('win'):
77 kernel_aliases['interrupt'] = 'KernelApp.interrupt'
77 kernel_aliases['interrupt'] = 'IPKernelApp.interrupt'
78 78
79 79 kernel_flags = dict(base_flags)
80 80 kernel_flags.update({
General Comments 0
You need to be logged in to leave comments. Login now