jdfreder / notebook-preview

:movie_camera: Lightweight preview of a notebook, nteract style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notebook-preview

Lightweight preview of a notebook, nteract style

import NotebookPreview from 'notebook-preview';
ReactDOM.render(<NotebookPreview notebook={notebookJSON}/>, document.querySelector('nb'));

You're going to want styles as well, which can be vendored and linked similarly to:

<!-- Optionally, use a conventional reset like normalize -->
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css"/>
<!-- Optionally, include the fonts nteract uses -->
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700,300,200,500,600,900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>

<!-- Required: CodeMirror styling -->
<link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css"/>

<!-- Required: Style sheets for the notebook itself -->
<link rel="stylesheet" href="node_modules/notebook-preview/theme-light.css" />
<link rel="stylesheet" href="node_modules/notebook-preview/main.css" />

About

:movie_camera: Lightweight preview of a notebook, nteract style

License:Mozilla Public License 2.0


Languages

Language:JavaScript 53.5%Language:CSS 46.5%