Skip to content

Latest commit

 

History

History
 
 

mathjax3-extension

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MathJAX 3 extension

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.

Prerequisites

  • JupyterLab ^0.34
  • Node.js >= 8

Install

jupyter labextension install @jupyterlab/mathjax3-extension

Development

# 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

Uninstall

jupyter labextension uninstall @jupyterlab/mathjax3-extension