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.
10 lines (9 loc) • 552 B
TypeScript
import type { IOutput } from '@jupyterlab/nbformat';
import type { MinifiedContentCache, MinifiedOutput } from './types.js';
/**
* Given a list of minified objects, restore to original nbformat IOutput objectss
*
* @param minified: List of minified output objects, including stream, error, execute_result, display_data, and update_display_data types.
* @param outputCache: MinifiedContentCache object with large output content
*/
export declare function convertToIOutputs(minified: MinifiedOutput[], outputCache: MinifiedContentCache): IOutput[];