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 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 v0.6.7-beta and Macaulay2 version 1.18 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.

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.0.tar.gz (25.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.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for macaulay2_jupyter_kernel-0.8.0.tar.gz
Algorithm Hash digest
SHA256 5e4c424858e2cb194a63d23e92bf7678b435e85393d9c55700b102ecdc286003
MD5 a7f1753153d0caf8a85fafb1d92673be
BLAKE2b-256 a66ff4131bf58b0765f1af3e9d9807e4fb3db8ebbad114593858e05077e6261d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for macaulay2_jupyter_kernel-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde706463613f4ca3e49beaf9a5ce023a1e5a6a76e1d276f4a96b538ec0edd2e
MD5 60838a5ae644dcd26cea80b431114aaf
BLAKE2b-256 16cd3ffbeae45ed662a4622d47ad6e08b3ca74697b8920a9eeebc6f86a96e7de

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