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 thewalnut.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 fileResult/LAPIN.gv
(convenient to display automata in notebooks);%DT blop "a->ab, b->a"
: compute the Dumont-Thomas numeration system associated to the substitutiona->ab, b->a
with its addition. The resulting numeration system ismsd_blop
and the DFAO isBlop
;%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 DFAOdfao
in numeration systemns
using the semigroup trick from the linear representation of a rational serie given in Maple filemaple
(generated by Walnut);%EQ maple1 maple2
: test if the rational series given in the Maple filesmaple1
andmaple2
(generated by Walnut) are equal.
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
walnut_kernel-0.3.2.tar.gz
(5.3 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e914fde90a9817b2be5fe84deaf2a92c4eee94087b6148bc3516492ebbf919f |
|
MD5 | 7226dbc8100013958da24b0f4cdb1a59 |
|
BLAKE2b-256 | ad56879706cbca10a161bbb5e8e95d6d47e22fb03617b6ac7bce961e9a8a9d77 |
File details
Details for the file walnut_kernel-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: walnut_kernel-0.3.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b23365b912c140a93d343d7cdeacf15a034c4326fa6b87f8d54947ab2597471 |
|
MD5 | 144bbea40558ac449013ad1f3c52e17f |
|
BLAKE2b-256 | bcc5b504cd34a2cf1b766bafd53822b0c7aac7b0e3cc02ab0227ad08e7933fe3 |