/react-jupyter

Render Jupyter Notebooks with React.js

Primary LanguageJupyter NotebookMIT LicenseMIT

react-jupyter.js

Installation

npm install react-jupyter

Demo

https://eoinmurray.github.io/react-jupyter/

Usage

<Jupyter
  notebook={notebookJSON}
  showCode={true} // optional
  defaultStyle={true} // optional
  loadMathjax={true} // optional
/>
  • notebooks - is the json content of an ipynb notebook file. Note: it must be json, not a string.
  • showCode - (optional), defaults to true, whether or not to show the code in the notebook. It can be handy to hide the code to make a nice presentation .
  • defaultStyle - (optional), defaults to true, if true then the library will load a default css file.
  • loadMathjax - (optional), defaults to true, will load an instance of MathJax from the MathJax CDN.