-
Notifications
You must be signed in to change notification settings - Fork 287
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 labSee also: