def _init_kernel_manager(self): connection_file = find_connection_file(self.app.connection_file) manager = QtKernelManager(connection_file=connection_file) manager.load_connection_file() manager.start_channels() atexit.register(manager.cleanup_connection_file) self.kernel_manager = manager
def default_manager(kernel): """ Return a configured QtKernelManager :param kernel: An IPKernelApp instance """ connection_file = find_connection_file(kernel.connection_file) manager = QtKernelManager(connection_file=connection_file) manager.load_connection_file() manager.start_channels() atexit.register(manager.cleanup_connection_file) return manager