2.2.1 • Published 2 months ago
react-ipynb-renderer-katex v2.2.1
solarizedl and duotone forest themes | monokai and xonokai themes |
---|---|
This component draws an ipynb file in Jupyter Notebook.
You can use MathJax or Katex to render math expressions; install react-ipynb-renderer
if you use MathJax, or react-ipynb-renderer-katex
if you use Katex.
If you are not particular, we recommend react-ipynb-renderer.
Demo
- https://codesandbox.io/s/react-ipynb-renderer-sample-kbu4z?file=/src/App.tsx
- https://codesandbox.io/s/react-ipynb-renderer-katex-sample-770np1?file=/src/App.tsx
Install
$ npm install --save react-ipynb-renderer
or
$ npm install --save react-ipynb-renderer-katex
Usage
Just pass an ipynb json object to IpynbRenderer
component.
Code example
Using react-ipynb-renderer
import { IpynbRenderer } from "react-ipynb-renderer";
// Jupyter theme
import "react-ipynb-renderer/dist/styles/monokai.css";
// import ipynb file as json
import ipynb from "./test.ipynb";
export const Component = () => {
return (
<IpynbRenderer
ipynb={ipynb}
/>
);
};
Using react-ipynb-renderer-katex
import { IpynbRenderer } from "react-ipynb-renderer-katex";
// Formula renderer for katex
import 'katex/dist/katex.min.css';
// Jupyter theme
import "react-ipynb-renderer-katex/dist/styles/monokai.css";
// import ipynb file as json
import ipynb from "./test.ipynb";
export const Component = () => {
return (
<IpynbRenderer
ipynb={ipynb}
/>
);
};
Links
2.2.0-rc.2
2 months ago
2.2.0-rc.0
2 months ago
2.2.0-rc.1
2 months ago
2.2.0-rc.6
2 months ago
2.2.0-rc.4
2 months ago
2.2.0-rc.5
2 months ago
2.2.1
2 months ago
2.2.0
2 months ago
2.2.0-alpha.0
2 months ago
2.2.1-rc.0
2 months ago
2.1.4
4 months ago
2.1.3
6 months ago
2.1.3-0
6 months ago
2.1.2
12 months ago
2.1.1
12 months ago
2.1.1-0
12 months ago
2.1.2-0
12 months ago
2.1.0
1 year ago
1.2.0
1 year ago
1.0.2
2 years ago
1.1.0
1 year ago
1.2.0-1
1 year ago
1.2.0-0
1 year ago
2.0.0-rc.0
1 year ago
1.0.3-1
1 year ago
1.0.3-0
1 year ago
1.0.3
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.1
2 years ago
1.0.1-4
2 years ago
1.0.1-3
2 years ago
1.0.1-2
2 years ago
1.0.1-0
2 years ago
1.0.0
2 years ago
1.0.0-alpha.0
2 years ago