Spenso + Idenso live showcase
Build a typed tensor expression, simplify its Dirac trace and contractions, and inspect how its mathematical display changes. This Marimo notebook shares one Symbolica kernel between Spenso and Idenso. Its concrete tensor network is drawn with Linnet and evaluated to a checked scalar result.
Explore the notebook
Choose Ports, Schoonschip, or Function call notation, then change dimensions, spacing, parentheses, or symbol scripts. The cells are editable: changing a constructor or an Idenso pass recomputes the affected results. The first visit downloads the browser Python runtime and this documentation version’s WebAssembly wheels.
This notebook requires JavaScript and the documentation build’s notebook assets. Open the Marimo source to run it locally.
What the examples establish
- Typed vector products and Dirac traces retain their representation and free-index structure.
- Idenso simplifies the underlying Symbolica expressions; Spenso presents the resulting tensor semantics using the selected display settings.
- A concrete two-vector network separates the tensor view, graph, DOT source, and scalar result. Contracting
(1, 2)with(3, 4)gives11.
For the full workflows, see Python tensor workflows and algebra and rewrites. FeynKit's showcase gallery connects these symbolic tools to models, Feynman diagrams, CFF, and tensor reduction.
More executable examples
- Python API tour: symbolic objects, component data, network execution and evaluators. C++ compilation remains a local operation.
- Derive a quark current: contract the vertex and propagator and check four complex components.
- Read tensor notation: compare display conventions and verify component identities.
- Explore a spinor tensor: execute the current and select any of its 256 components.
Run and edit locally
From a checkout, use an interpreter with the combined Symbolica community host containing Spenso and Idenso, plus Marimo 0.25.1, Typst 0.15.0, and this checkout’s Linnet Python wheel:
just notebook spenso_idenso_display /path/to/pythonThe notebook source is shared by the browser export and the local editor. The browser export installs the versioned wheels; a local editor uses the chosen interpreter’s packages.