A JupyterLab extension for rendering math with MathJax 3 alpha.
The default LaTeX renderer in JupyterLab uses MathJax. This extension substitutes the MathJax renderer with the MathJax 3 (beta) renderer.
- JupyterLab ^0.34
- Node.js >= 8
jupyter labextension install @jupyterlab/mathjax3-extension
# Clone the repo to your local environment
git clone https://github.com/jupyterlab/jupyter-renderers.git
cd jupyter-renderers
# Install dependencies
npm install
# Build Typescript source
npm run build
# Link your development version of the extension with JupyterLab
jupyter labextension link packages/mathjax3-extension
# Rebuild Typescript source after making changes
npm run build
# Rebuild JupyterLab after making any changes
jupyter lab build
You can watch the jupyter-renderers directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch
# Watch the jupyter-renderers directory
npm run watch
jupyter labextension uninstall @jupyterlab/mathjax3-extension