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
File details
Details for the file macaulay2-jupyter-kernel-0.6.7.tar.gz
.
File metadata
- Download URL: macaulay2-jupyter-kernel-0.6.7.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf12fa994ba3d8d6b8d0dddfa1966867498eabbe8a91b167212098690fac8ed |
|
MD5 | 1bc6de6727928a46f915115274c70330 |
|
BLAKE2b-256 | 453e47d0864540299d97402eaf731dcffa49edd6ca5801ef4d80f792705e8353 |
File details
Details for the file macaulay2_jupyter_kernel-0.6.7-py3-none-any.whl
.
File metadata
- Download URL: macaulay2_jupyter_kernel-0.6.7-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7829b64ee4fd17336550aa6356e924fa1e0ee562aa315ae51dff943f29ea69a2 |
|
MD5 | ef48b5a7ab4ddb4c84e6391cce58282c |
|
BLAKE2b-256 | d6b207f322499f0df23b8f249b99e20d425432d5a16ea95b30b834201c7fada7 |