UNPKG

@datalayer/core

Version:
35 lines (34 loc) 887 B
import { Session } from '@jupyterlab/services'; import { IRuntimeModel, type IRuntimeDesc } from '../../models'; export interface IRuntimeAssignOptions { /** * Kernel description. */ runtimeDesc?: IRuntimeDesc; /** * Kernel model to connect to. */ runtimeModel?: IRuntimeModel; /** * Whether to transfer the state to the new Kernel model. */ transferState?: boolean; } /** * Runtime picker component properties. */ interface IRuntimeSimplePickerProps { /** * Kernel assignment callback. */ assignRuntime: (options: IRuntimeAssignOptions) => Promise<void>; /** * Connection to the active Kernel. */ sessionConnection?: Session.ISessionConnection; } /** * Runtime simple picker component. */ export declare function RuntimeSimplePicker(props: IRuntimeSimplePickerProps): JSX.Element; export {};