UNPKG

@plutojl/rainbow

Version:

TypeScript/JavaScript API for programmatically interacting with Pluto notebooks

17 lines (16 loc) 952 B
/** Utilities to work with NotebookData */ import { Worker } from "./client.js"; export type CellStatus = "queued" | "running" | "errored" | "done" | "pending"; export declare function getResult(worker: Worker, cell_id: string): import("./index.js").CellResultData; export declare function getSnippetLogs(worker: Worker, cell_id: string): import("../components/Editor.js").LogEntryData[]; export declare function getProgressLogs(worker: Worker, cell_id: string): import("../components/Editor.js").LogEntryData[]; export declare function getOutput(worker: Worker, cell_id: string): { body: string | any; persist_js_state: boolean; last_run_timestamp: number; mime: string; rootassignee: string | null; has_pluto_hook_features: boolean; }; export declare function getStatus(worker: Worker, cell_id: string): CellStatus; export declare function getMime(worker: Worker, cell_id: string): ["text/plain" | "text/html" | string, any];