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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: walnut_kernel-0.3.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for walnut_kernel-0.3.3.tar.gz
Algorithm Hash digest
SHA256 26754407e47551979b636b85147e7078f8432d6293e477c76f973db4207defea
MD5 5638d4b29c457dd41e005b3d2348d09b
BLAKE2b-256 53478ee334756b531408d51f0ef6f80c14a172407c615ec4099cdabb429a0386

See more details on using hashes here.

Provenance

The following attestation bundles were made for walnut_kernel-0.3.3.tar.gz:

Publisher: publish.yml on nopid/walnut_kernel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: walnut_kernel-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for walnut_kernel-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49fa43ddeffafc3a6ba75339d345bdb9abe68371b38c5f2e93783dceb0c6ddbb
MD5 eb1431616b01287c048717a9f0bc3cba
BLAKE2b-256 0bfc69e280905b52f03d67e36f15adfbf82c9de36b5b18fcde5dada512a3cbf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for walnut_kernel-0.3.3-py3-none-any.whl:

Publisher: publish.yml on nopid/walnut_kernel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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