UNPKG

@nteract/epics

Version:
26 lines (25 loc) 1.25 kB
import { ContentRef, RemoteKernelProps, LocalKernelProps, DocumentRecordProps, EmptyModelRecordProps, FileModelRecordProps, DirectoryModelRecordProps } from "@nteract/types"; import { RecordOf } from "immutable"; /** * Listen for comm_open messages from the kernel that are associated * with models that will not be rendered on the page. * * Note: this is not an ideal solution but we need to do this * so that we can keep the WidgetManager contextualized to the * WidgetDisplay as opposed to at the top-level. */ export declare const ipywidgetsModel$: (kernel: LocalKernelProps | RemoteKernelProps, model: RecordOf<DocumentRecordProps> | RecordOf<EmptyModelRecordProps> | RecordOf<FileModelRecordProps> | RecordOf<DirectoryModelRecordProps> | null, contentRef: ContentRef) => import("rxjs").Observable<import("@nteract/actions").CommOpenAction | { type: "APPEND_OUTPUT"; payload: import("@nteract/actions/lib/utils").HasCell & { output: import("@nteract/commutable").OnDiskOutput; }; } | { type: "EXECUTE_FAILED"; payload: import("@nteract/actions/lib/utils").MaybeHasContent & { id?: string | undefined; } & { error: Error; code?: string | undefined; }; error: true; } | null>;