Skip to main content

Jupyter kernel for Macaulay2

Project description

M2JK — Jupyter kernel for Macaulay2

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 macaulay2-jupyter-kernel
$ python3 -m m2_kernel install

You can install the latest development version from source by

$ pip3 install git+https://github.com/Macaulay2/Macaulay2-Jupyter-Kernel
$ python3 -m m2_kernel install

Docker

A docker image packing the latest versions of the kernel and Macaulay2 is available as dtorrance/m2jk. To run locally, you need to map port 8890.

$ docker run -p 8890:8890 dtorrance/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macaulay2_jupyter_kernel-0.8.2.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macaulay2_jupyter_kernel-0.8.2-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file macaulay2_jupyter_kernel-0.8.2.tar.gz.

File metadata

  • Download URL: macaulay2_jupyter_kernel-0.8.2.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for macaulay2_jupyter_kernel-0.8.2.tar.gz
Algorithm Hash digest
SHA256 8b078f8e21c99a9f0222da35218b0aacceb17f9b9751565a8a8192bf7cc81538
MD5 64a8b62375c3f736b6536379be8b2e8c
BLAKE2b-256 f997409bf8445e9bdc7e011b7b62c1c05c0b3a05ab6f89728fea43c479a314cd

See more details on using hashes here.

File details

Details for the file macaulay2_jupyter_kernel-0.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for macaulay2_jupyter_kernel-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ddfe639d9c178a2de8c52b8ae60103f282540891572e32e73d76d4d8b578bc74
MD5 8077b4e9553b8191edc8dd8dcb6e10e1
BLAKE2b-256 7d6b80623c25bef9a87d9f8d6e56aeb4ba48852c46458fa06975d9bd014035ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page