Skip to main content

jupyterlab_macaulay2

PyPI version npm version Github Actions Status

CodeMirror-based syntax highlighting for Macaulay2 in Jupyter code cells

The extension registers Macaulay2 with JupyterLab's CodeMirror language registry, so code cells running the Macaulay2 kernel and files ending in .m2 are highlighted as you type.

It also highlights Macaulay2 that JupyterLab itself renders plain: macaulay2 and m2 code fences in markdown cells, whatever their case, and the documentation the kernel emits as raw HTML, which rendermime's markdown highlighter never sees. Both use the same language and the same theme-aware colors as the editor.

Alongside that, it fixes a few things about how the kernel's output is laid out: examples and nets are left-aligned, and documentation Usage: lines keep the label and the code on one line.

Requirements

  • JupyterLab >= 4.3.5

Install

To install the extension, execute:

pip install jupyterlab_macaulay2

Uninstall

To remove the extension, execute:

pip uninstall jupyterlab_macaulay2

Contributing

If you would like to contribute to this extension, please refer to the Contributing Guide.

Download files

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

Source Distribution

jupyterlab_macaulay2-0.3.0.tar.gz (194.8 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_macaulay2-0.3.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_macaulay2-0.3.0.tar.gz.

File metadata

  • Download URL: jupyterlab_macaulay2-0.3.0.tar.gz
  • Upload date:
  • Size: 194.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for jupyterlab_macaulay2-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9220537f76a690ffb143eb492c03933eb4fbf6499ab80ef5196a7c571e54e5e4
MD5 1e97d6b2fd05580832cd4d8ef283e882
BLAKE2b-256 ae5de8007adf7a3f9c6a2fa7813d08862718745926946e3ea635eb31e9198353

See more details on using hashes here.

File details

Details for the file jupyterlab_macaulay2-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_macaulay2-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29e6556ee8b6b35466e6642b0ee26773dc7fcff6e0d1fd8680c1d6fa5f560124
MD5 0fd40478c3db5a8460e990aa75c2f478
BLAKE2b-256 2903e64d5c8a141de35d16215aa7f924465f7dbe53d1a479e03820eeaf193a03

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page