passagemath-macaulay2-jupyterkernel — Jupyter kernel for Macaulay2 (passagemath fork)
Beta Testing!
You can now use Jupyter (Notebook or Lab) as a front-end for Macaulay2.
See the demo for sample use and an outline of the kernel-specific features. For bugs or requests, open an issue. For recent changes, see the changelog.
Requirements
You need a recent version of Python and pip.
Python 3 is recommended for build installs and necessary for source installs.
You can install Jupyter directly from PyPI by
pip3 install --upgrade pip
pip3 install jupyter
Macaulay2 needs to be installed and on your path.
If you are using Emacs as your front-end, it already is, but you can test it by which M2.
Otherwise, you can achieve that by running setup() from within an M2 session.
Alternatively, you can configure M2JK to use a specific binary.
Installation
You can install the latest release version directly from PyPI by
$ pip3 install passagemath-macaulay2-jupyterkernel
$ python3 -m m2_kernel.install
Alternatively, you can install the latest development version from source by
$ git clone https://github.com/passagemath/passagemath-macaulay2-jupyterkernel.git
$ cd passagemath-macaulay2-jupyterkernel
$ pip3 install .
$ python3 -m m2_kernel.install
Docker
A docker image packing v0.6.7-beta and Macaulay2 version 1.13 is available as rzlatev/m2jk.
To run locally, you need to map port 8890.
$ docker run -p 8890:8890 rzlatev/m2jk &
Running the notebook
Once the installation is complete, you need to start (or restart) Jupyter by
$ jupyter notebook &
This shoud fire up a browser for you. If not, copy the output URL into one. Then select File ⇨ New Notebook ⇨ M2 from the main menu.
License
This software is not part of Macaulay2 and is released under the MIT License.
Release files for passagemath-macaulay2-jupyterkernel 0.6.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| passagemath_macaulay2_jupyterkernel-0.6.7.2.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| passagemath_macaulay2_jupyterkernel-0.6.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / passagemath_macaulay2_jupyterkernel-0.6.7.2.tar.gz
| Download URL | passagemath_macaulay2_jupyterkernel-0.6.7.2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ed83bbd8f692524c5b1f3b2263eb26dce5b300274818555a173be25363a4c5
|
|
BLAKE2b-256 checksum How to use checksums |
632b267a3c0f5434c9925d685c7b60e6836c9de6ee3371eb137780ee78b0adbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / passagemath_macaulay2_jupyterkernel-0.6.7.2-py3-none-any.whl
| Download URL | passagemath_macaulay2_jupyterkernel-0.6.7.2-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
484ec1b0bd65fa7478e5d865f3fe1d8637e9d190d3bf0bfcbb2b5c673bd348a1
|
|
BLAKE2b-256 checksum How to use checksums |
1a77c009c49c27cfdeb8e89168946b5419f7157a3a006d72cbaa274a140fbacb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|