Skip to main content

Simple kernel for Walnut

Project description

walnut_kernel

walnut_kernel is a simple Jupyter kernel for Walnut.

Installation

To install walnut_kernel from PyPI:

    pip install walnut_kernel

Using the Walnut kernel

Before using the kernel with notebooks or console frontends, you need a compiled copy of Walnut and to set the following environment variables:

  • WALNUT_HOME should point to a writable directory containing all the Walnut files (Result/, Custom Bases/, ...);
  • WALNUT_JAR should point to the walnut.jar main JAR file.

Magic commands

This kernel is build with Metakernel and supports several convenient magic functions including %%file and %%python.

This kernel also provides its own magics:

  • %showme LAPIN: displays the graphiz file Result/LAPIN.gv (convenient to display automata in notebooks);
  • %DT blop "a->ab, b->a": compute the Dumont-Thomas numeration system associated to the substitution a->ab, b->a with its addition. The resulting numeration system is msd_blop and the DFAO is Blop;
  • %DT blop "a->aba, b->b" 30: when the Dumont-Thomas numeration system is not X-Pisot, a bound is needed;
  • %SGT maple ns dfao: compute the DFAO dfao in numeration system ns using the semigroup trick from the linear representation of a rational serie given in Maple file maple (generated by Walnut);
  • %EQ maple1 maple2: test if the rational series given in the Maple files maple1 and maple2 (generated by Walnut) are equal.

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

walnut_kernel-0.3.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

walnut_kernel-0.3.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file walnut_kernel-0.3.2.tar.gz.

File metadata

  • Download URL: walnut_kernel-0.3.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for walnut_kernel-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4e914fde90a9817b2be5fe84deaf2a92c4eee94087b6148bc3516492ebbf919f
MD5 7226dbc8100013958da24b0f4cdb1a59
BLAKE2b-256 ad56879706cbca10a161bbb5e8e95d6d47e22fb03617b6ac7bce961e9a8a9d77

See more details on using hashes here.

File details

Details for the file walnut_kernel-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for walnut_kernel-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b23365b912c140a93d343d7cdeacf15a034c4326fa6b87f8d54947ab2597471
MD5 144bbea40558ac449013ad1f3c52e17f
BLAKE2b-256 bcc5b504cd34a2cf1b766bafd53822b0c7aac7b0e3cc02ab0227ad08e7933fe3

See more details on using hashes here.

Supported by

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