UNPKG

nbtx

Version:

Jupyter Notebook Translators: Transform Jupyter notebook JSON files (*.ipynb) to and from more compact data structures for use in web applications or other contexts where loading component parts (e.g. images, data, etc.) is preferred.

9 lines (8 loc) 500 B
import type { IDisplayData, IExecuteResult } from '@jupyterlab/nbformat'; import type { MinifiedContentCache, MinifiedMimeBundle, MinifyOptions } from './types.js'; export declare function minifyMimeOutput(output: IDisplayData | IExecuteResult, outputCache: MinifiedContentCache, opts: MinifyOptions): Promise<{ output_type: "execute_result" | "display_data"; execution_count: number | undefined; metadata: import("@lumino/coreutils").PartialJSONObject; data: MinifiedMimeBundle; }>;