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.1.tar.gz
(5.3 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf64044be65883554242e2fbfe3f71c09deb3cdadcd3c0caebb39617835c72a |
|
MD5 | 82b34b703ca8baf3e2b1b643f0171c2f |
|
BLAKE2b-256 | 23f3d7c884981acfdc7990b18b5e9dd241fb4cb1bdec281d8bb6a3e516040756 |
File details
Details for the file walnut_kernel-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: walnut_kernel-0.3.1-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 | 4a2e310ca1d1faab489b990a00a81f968aa4e621d213d841ebf79d4748ee7898 |
|
MD5 | 031c13a04ce6e9e8cf7d1b8dbd4ac60d |
|
BLAKE2b-256 | 8ca233170f29a711166c8ca58aab0a8a577a201b6f92c7686d6c5f328d34fd0a |