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
Alternatively, you can install the latest development version from source by
$ git clone https://github.com/radoslavraynov/macaulay2-jupyter-kernel.git
$ cd macaulay2-jupyter-kernel
$ pip3 install .
$ python3 -m m2_kernel.install
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for macaulay2-jupyter-kernel-0.6.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c284e159bceac4a5fdf84bf96c2795f12b93c3a333d9b2439462843a52f1b11a |
|
MD5 | 1df584d9c7dfb0b058026e3106b3217f |
|
BLAKE2b-256 | 4a1a59a97b4d774718ea423e2370014b9f63b54bac68f9578277600764150ec0 |
Hashes for macaulay2_jupyter_kernel-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1701fbc2fe1dae5d8f840aa9a5c26e35115dfe6ccb69df66231986a619c00c60 |
|
MD5 | f7f8725f6b18bbf9044b7d9fde0cfbff |
|
BLAKE2b-256 | 7a854ce476ab3e8b27ed1c5dc255e39b9b9c24c35f34cd315e19e200a7fe390e |