// Creating a new kernel manager typeclass CustomKernelManager extends BaseKernelManager { readonly managerType = 'custom' as const; async startNew(options?: Partial<Pick<Kernel.IModel, "name">>): Promise<Kernel.IKernelConnection> { // Custom kernel creation logic const kernel = await createMyCustomKernel(options); this._activeKernel = kernel; this._runningChanged.emit([kernel.model]); return kernel; }} Copy
// Creating a new kernel manager typeclass CustomKernelManager extends BaseKernelManager { readonly managerType = 'custom' as const; async startNew(options?: Partial<Pick<Kernel.IModel, "name">>): Promise<Kernel.IKernelConnection> { // Custom kernel creation logic const kernel = await createMyCustomKernel(options); this._activeKernel = kernel; this._runningChanged.emit([kernel.model]); return kernel; }}
Example