Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Using Macaulay2 with Jupyter

Doug Torrance edited this page Mar 2, 2026 · 9 revisions

To install the Macaulay2 Jupyter kernel and start Jupyter, run the following. Note that Macaulay2 should already be installed on your system.

mkdir m2-jupyter
python3 -m venv m2-jupyter
source m2-jupyter/bin/activate
pip install macaulay2-jupyter-kernel
python3 -m m2_kernel install --user
pip install jupyterlab # or 'pip install notebook' for Jupyter Notebook
jupyter lab # or 'jupyter notebook'

At this point, your web browser should open with an instance of JupyterLab. Click on the "M2" icon to open up to a new Macaulay2 notebook.

After it's installed, then further sessions only need the following:

source m2-jupyter/bin/activate
jupyter lab

See also:

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /