UNPKG

@nteract/fs-kernels

Version:

A manager for the filesystem aspects of Juyter kernels

20 lines (19 loc) 768 B
import { ExecaChildProcess } from "execa"; import pidusage from "pidusage"; import { Channels } from "@nteract/messaging"; import { JupyterConnectionInfo } from "enchannel-zmq-backend"; import { KernelSpec } from "./kernelspecs"; import { LaunchedKernel } from "./spawnteract"; export declare class Kernel { kernelSpec: KernelSpec; process: ExecaChildProcess; connectionInfo: JupyterConnectionInfo; connectionFile: string; channels: Channels; constructor(launchedKernel: LaunchedKernel); shutdownEpic(timeoutMs?: number): any; shutdownProcess(): Promise<void>; shutdown(timeoutMs?: number): Promise<any>; getUsage(): Promise<pidusage.Status>; } export declare function launchKernel(input: string | KernelSpec): Promise<Kernel>;