import { ISessionContext } from '@jupyterlab/apputils'; import { KernelMessage } from '@jupyterlab/services'; import { IShellFuture } from '@jupyterlab/services/lib/kernel/kernel'; import { IExecuteReplyMsg, IExecuteRequestMsg } from '@jupyterlab/services/lib/kernel/messages'; import { ISignal } from '@lumino/signaling'; /** * Connector class that handles execute request to a kernel */ export declare class KernelConnector { private _session; private _kernelChanged; private _kernelRestarted; constructor(options: KernelConnector.IOptions); get kernelChanged(): ISignal>; get kernelRestarted(): ISignal>; get kernelLanguage(): Promise; get kernelName(): string; /** * A Promise that is fulfilled when the session associated w/ the connector is ready. */ get ready(): Promise; /** * A signal emitted for iopub messages of the kernel associated with the kernel. */ get iopubMessage(): ISignal; /** * Executes the given request on the kernel associated with the connector. * @param content: IExecuteRequestMsg to forward to the kernel. * @param ioCallback: Callable to forward IOPub messages of the kernel to. * @returns Promise */ fetch(content: KernelMessage.IExecuteRequestMsg['content'], ioCallback: (msg: KernelMessage.IIOPubMessage) => any): Promise; execute(content: KernelMessage.IExecuteRequestMsg['content']): IShellFuture; } export declare namespace KernelConnector { interface IOptions { session: ISessionContext; } }