Marimo notebook helpers for geometric algebra — t-string powered LaTeX rendering
Project description
galaga-marimo
Marimo notebook helpers for geometric algebra — t-string powered LaTeX rendering.
Requires Python 3.14+ for t-string support.
Usage
import galaga_marimo as gm
gm.md(t"""
# Example
Rotor: {R}
Vector: {v}
""")
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).name(r"\uparrow")
d = (e1 * e2).name(r"\downarrow")
knowns = {r"\uparrow": u, r"\downarrow": 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 LaTeX strings — use whatever notation fits your domain.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file galaga_marimo-1.6.0.tar.gz.
File metadata
- Download URL: galaga_marimo-1.6.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ba03638e071d6ec101bbc48cc54d605322f3189835d0ba658c2d06d75e99655
|
|
| MD5 |
93d157821ea8fa66c9a071663cb7774a
|
|
| BLAKE2b-256 |
0fe57c586cbb498e21e13b66370438b865617d16df6b8bff4f7d0485b517baf3
|
File details
Details for the file galaga_marimo-1.6.0-py3-none-any.whl.
File metadata
- Download URL: galaga_marimo-1.6.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5850784423683145584ba68ad6dd51ba02a95325291b62055934a78105ca9ae6
|
|
| MD5 |
96196bab0f223710f938aea10c2225fb
|
|
| BLAKE2b-256 |
ddd481a0846a0ea27d2c825949ab06f40110e9c53574bbd5e63cbda6129819fd
|