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.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: walnut_kernel-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 acf64044be65883554242e2fbfe3f71c09deb3cdadcd3c0caebb39617835c72a
MD5 82b34b703ca8baf3e2b1b643f0171c2f
BLAKE2b-256 23f3d7c884981acfdc7990b18b5e9dd241fb4cb1bdec281d8bb6a3e516040756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for walnut_kernel-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a2e310ca1d1faab489b990a00a81f968aa4e621d213d841ebf79d4748ee7898
MD5 031c13a04ce6e9e8cf7d1b8dbd4ac60d
BLAKE2b-256 8ca233170f29a711166c8ca58aab0a8a577a201b6f92c7686d6c5f328d34fd0a

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