UNPKG

react-ipynb-renderer

Version:

A react component that displays an ipynb file.

73 lines 2.1 kB
import { default as React } from 'react'; export type OutputType = { name?: string; ename?: string; evalue?: string; traceback?: string[]; data?: { 'text/plain'?: string[]; 'text/html'?: string[]; 'text/latex'?: string[]; 'image/png'?: string; 'image/jpeg'?: string; 'image/gif'?: string; 'image/svg+xml'?: string; 'application/javascript'?: string[]; }; output_type?: string; png?: string; jpeg?: string; gif?: string; svg?: string; text?: string[]; execution_count?: number; metadata?: { scrolled?: boolean; }; }; export type CellType = { attachments?: { [s: string]: { [s: string]: string; }; }; cell_type?: string; execution_count?: number | null; prompt_number?: number; auto_number?: number; source?: string[]; outputs?: OutputType[]; input?: string[]; }; export type SyntaxThemeType = 'atomDark' | 'cb' | 'coy' | 'darcula' | 'dark' | 'duotoneDark' | 'duotoneEarth' | 'duotoneForest' | 'duotoneLight' | 'duotoneSea' | 'duotoneSpace' | 'funky' | 'ghcolors' | 'hopscotch' | 'okaidia' | 'pojoaque' | 'prism' | 'solarizedlight' | 'tomorrow' | 'twilight' | 'vscDarkPlus' | 'xonokai'; export type LanguageType = 'python' | 'r' | 'julia' | 'haskell' | 'ruby'; export type HtmlFilter = (html: string) => string; export type IpynbType = { cells: CellType[]; worksheets?: { cells: CellType[]; }[]; }; export type BaseProps = { ipynb: IpynbType; syntaxTheme?: SyntaxThemeType; language?: LanguageType; bgTransparent?: boolean; htmlFilter?: HtmlFilter; seqAsExecutionCount?: boolean; onLoad?: () => void; }; export type MarkdownProps = { className: string; text: string; }; export type ContextType = { syntaxTheme: SyntaxThemeType; language: LanguageType; bgTransparent: boolean; Markdown: React.FC<MarkdownProps>; htmlFilter: HtmlFilter; markdownOptions: any; seqAsExecutionCount: boolean; }; //# sourceMappingURL=types.d.ts.map