Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Lispyn

Write research experiments in Hy (Lisp for Python), then run them directly or turn them into standard Jupyter notebooks.

Lispyn adds reusable macros to existing PyTorch, Matplotlib, pandas and NumPy workflows. It does not replace those libraries or lock you into a training framework.

PyPI version CI on main Apache-2.0

Why use it for research?

  • Less boilerplate: repeatable experiment parameters, training, data checks, splits, cross-validation, metrics and plotting.
  • One source, three modes: execute Hy directly; compile notebook cells without running them; or run and save the notebook with outputs.
  • Inspectable research artifacts: ordinary Python cells, provenance, reports and optional integrity-checked experiment archives.

These tools help organize research; they do not guarantee reproducibility or scientifically valid results.

Install

pip install lispyn

Hy, notebook execution and Matplotlib are included. NumPy comes with Matplotlib; for pandas use pip install "lispyn[data]". PyTorch is installed separately for the appropriate CPU/GPU build.

How it works: three ways to run Hy

All three commands use the same runnable examples/hello.hy. Clone the examples first:

git clone https://github.com/edujbarrios/lispyn.git
cd lispyn

1. Run Hy directly — prints to the terminal, no notebook:

lispyn run examples/hello.hy

2. Build a Jupyter notebook — creates hello.ipynb with Python/Markdown cells. Nothing is executed:

lispyn build examples/hello.hy -o hello.ipynb

3. Build and execute a Jupyter notebook — creates hello-executed.ipynb and saves the executed cells and their outputs:

lispyn execute examples/hello.hy -o hello-executed.ipynb

Check for 2 + 3 + 5 = 10 and Lispyn checks passed! in the terminal or executed notebook. Hy macros compile into regular Python notebook cells. Only run or compile trusted Hy source; macros are not sandboxed.

Complete macro catalog

All 49 macros: syntax, arguments, dependencies and Hy examples

The catalog explains the available PyTorch training and evaluation, Matplotlib charts, pandas table operations, NumPy array checks, notebook generation, reports and experiment comparisons. New: data-quality profiles. See also the PyTorch quickstart and executed notebook gallery.

For native PyTorch, try lispyn execute examples/quickstart.hy after installing PyTorch.

From a source checkout, pip install -r requirements.txt installs an optional full research environment.

Created by Eduardo J. Barrios · Apache-2.0 · Citation · Experimental alpha software.

Metadata

Release files for lispyn 0.32.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lispyn 0.32.0a1
File Size Uploaded Provenance Actions
lispyn-0.32.0a1.tar.gz 137.5 kB With provenance Details for lispyn-0.32.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lispyn 0.32.0a1
File Interpreter ABI Platform Actions
lispyn-0.32.0a1-py3-none-any.whl Python 3 none any Details for lispyn-0.32.0a1-py3-none-any.whl

Total release size: 226.0 kB

Release files / lispyn-0.32.0a1.tar.gz

Download URL lispyn-0.32.0a1.tar.gz
Size 137.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d16411c6fd48ca5b6bf749e1efbe778105163ee18c8d27acd87e219bb237af5
BLAKE2b-256 checksum
How to use checksums
f0452d47080fa3c38b49f745d0109850e9c9c81e452a228cb35cf65297162e2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / lispyn-0.32.0a1-py3-none-any.whl

Download URL lispyn-0.32.0a1-py3-none-any.whl
Size 88.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dab02b59ec80bebd350daaee96425b2d6ff1ef8bc6d4275f7be2c86dc81b134
BLAKE2b-256 checksum
How to use checksums
115c5554a065394f1e51e55b3ad83db081f8d46b102f187c1b70ba195f155986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for lispyn 0.32.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lispyn-0.32.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page