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.

During the Galaga 2 prerelease train:

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

Usage

import galaga_marimo as gm

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 d:
    d.md(t"g₊(↓) = {g_plus(d)}")
    d.md(t"g₋(↓) = {g_minus(d)}")

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galaga_marimo-2.0.0a2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

galaga_marimo-2.0.0a2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file galaga_marimo-2.0.0a2.tar.gz.

File metadata

  • Download URL: galaga_marimo-2.0.0a2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for galaga_marimo-2.0.0a2.tar.gz
Algorithm Hash digest
SHA256 6aae6dad8718047eaeef11857cdf21bc4a0370fd456d5cae31387255f3bf6c2b
MD5 2155f2dad5859ce13a69dc5cc1e12220
BLAKE2b-256 8bb54ca18e2b73b1be65a4b427bf508327c566ace5301ec72fd1f0dd5d18fb0c

See more details on using hashes here.

File details

Details for the file galaga_marimo-2.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: galaga_marimo-2.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for galaga_marimo-2.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 122936f8a5c60fe6df134fde151e1a68de57de6bc1df87f714f1c80cf78d2a9f
MD5 d6065bd6151147c7ebe9e72c38f960aa
BLAKE2b-256 e33b4666bc31f48a39ba7de3cf3d8eb1abf9b09cfb2dca5b98bb7b9b29496a6b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0a2 This release

2 files

1.8.1

2 files

1.8.0

2 files

1.7.6

2 files

1.7.5

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.5

2 files

1.6.4

2 files

1.6.3

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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