##// END OF EJS Templates
use KM.client() method in ConsoleApp
MinRK -
Show More
@@ -343,11 +343,11 b' class IPythonConsoleApp(Configurable):'
343 connection_file=self.connection_file,
343 connection_file=self.connection_file,
344 config=self.config,
344 config=self.config,
345 )
345 )
346 # start the kernel
346 self.kernel_manager.client_factory = self.kernel_client_class
347 if not self.existing:
348 self.kernel_manager.start_kernel(extra_arguments=self.kernel_argv)
347 self.kernel_manager.start_kernel(extra_arguments=self.kernel_argv)
349 atexit.register(self.kernel_manager.cleanup_ipc_files)
348 atexit.register(self.kernel_manager.cleanup_ipc_files)
350 elif self.sshserver:
349
350 if self.sshserver:
351 # ssh, write new connection file
351 # ssh, write new connection file
352 self.kernel_manager.write_connection_file()
352 self.kernel_manager.write_connection_file()
353
353
@@ -362,6 +362,9 b' class IPythonConsoleApp(Configurable):'
362 atexit.register(self.kernel_manager.cleanup_connection_file)
362 atexit.register(self.kernel_manager.cleanup_connection_file)
363
363
364 def init_kernel_client(self):
364 def init_kernel_client(self):
365 if self.kernel_manager is not None:
366 self.kernel_client = self.kernel_manager.client()
367 else:
365 self.kernel_client = self.kernel_client_class(
368 self.kernel_client = self.kernel_client_class(
366 shell_port=self.shell_port,
369 shell_port=self.shell_port,
367 iopub_port=self.iopub_port,
370 iopub_port=self.iopub_port,
General Comments 0
You need to be logged in to leave comments. Login now