Skip to main content
Pre-release

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

galaga-marimo

Marimo notebook helpers for geometric algebra — t-string powered LaTeX rendering.

Requires Python 3.14+ for t-string support.

galaga itself remains Python 3.11+. The t-string requirement belongs only to this optional adapter package.

For the Galaga 2 beta, opt into prereleases:

python -m pip install --pre "galaga-marimo>=2.0.0b1,<3"

Usage

from galaga import Algebra, exp
import galaga_marimo as gm

algebra = Algebra(2)
e1, e2 = algebra.basis_vectors(expr=True)
R = exp(-0.25 * (e1 ^ e2)).named("R")
v = (2 * e1 + e2).named("v")

gm.md(t"""
# Example

Rotor: {R}
Vector: {v}
Derivation: {v:expr}
Concrete coefficients: {v:value}
""")

The ordinary interpolation path uses the object's public .latex() protocol. The :name, :expr, :value, and :full format specifications select Galaga facade content while keeping Marimo's inline/block layout independent.

Recognizing Known Values

When computed results are numerically equal to named multivectors (e.g. eigenstates, basis elements), use recognize= to annotate them:

from galaga import Algebra

alg = Algebra(2)
e1, e2 = alg.basis_vectors()
u = alg.scalar(1.0).named("up", latex=r"\uparrow")
d = (e1 * e2).named("down", latex=r"\downarrow")

knowns = [u, d]

result = alg.scalar(1.0)
gm.md(t"Result: {result}", recognize=knowns)
# renders: Result: $1 \quad (\equiv \uparrow)$

The Doc builder also supports it:

with gm.doc(recognize=knowns) as document:
    document.md(t"Known scalar: {u}")
    document.md(t"Known bivector: {d}")
document

Labels are taken from each MV's immutable .name value, created with .named(..., latex=...). Pass any collection (list, tuple, or dict) of named multivectors.

Interactive visualizations are intentionally separate from this t-string renderer. Install galaga-anywidget and import galaga_anywidget.viz for the persistent 2D CGA widget.

See the integration guide for the public rendering and expression protocols used by companion packages.

Metadata

Release files for galaga-marimo 2.0.0b1

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

Source distribution (sdist)

Source distribution for galaga-marimo 2.0.0b1
File Size Uploaded Provenance Actions
galaga_marimo-2.0.0b1.tar.gz 12.5 kB Without provenance Details for galaga_marimo-2.0.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for galaga-marimo 2.0.0b1
File Interpreter ABI Platform Actions
galaga_marimo-2.0.0b1-py3-none-any.whl Python 3 none any Details for galaga_marimo-2.0.0b1-py3-none-any.whl

Total release size: 20.1 kB

Release files / galaga_marimo-2.0.0b1.tar.gz

Download URL galaga_marimo-2.0.0b1.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d502ad3fcbcfd27fbe3c0d1d1a98a651be90b137d5b42c87256bfd3da15ee9
BLAKE2b-256 checksum
How to use checksums
1b1b85e2ab19b157810ad49a87949f424f33c009ed9ed28af81fbc1411643901
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / galaga_marimo-2.0.0b1-py3-none-any.whl

Download URL galaga_marimo-2.0.0b1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1fd19e9d549053005bde2ca9b0e8a4c1f8c29959aba2c0cab4a3005f21604f8
BLAKE2b-256 checksum
How to use checksums
889619f7fec5d587e1a01c3e78c6862b727407064832fc916a6ac609aa0553ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for galaga-marimo 2.0.0b1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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