react-jupyter-notebook-renderer
v0.0.2
Published
A React component for rendering Jupyter Notebooks
Maintainers
Readme
React Jupyter Notebook Renderer
A simple, unstyled React component for rendering Jupyter Notebooks.
Installation
npm install react-jupyter-notebook-rendererUsage
import { NotebookRenderer } from "react-jupyter-notebook-renderer";
<NotebookRenderer notebookContent={notebookContent} />;Props
notebookContent: The content of the notebook to render. Can be a JSON string or an object.theme: The theme to use for code blocks. Code blocks are rendered with prism-react-renderer. Defaults tovsDark. Additional options can be found here.classNames: Custom class names for the notebook:notebookContainernotebookLoadingnotebookCellnotebookMarkdownCellnotebookCodeCellnotebookCellInputnotebookCellOutputnotebookOutputContainernotebookOutputTogglenotebookOutputTextnotebookOutputImagenotebookOutputStreamnotebookOutputErrornotebookCodeContainernotebookCodeContent
Contributing
Contributions are welcome! Please open an issue or submit a PR.
