Spenso · latest
On this page

Spynso3 versions

The Python adapter is versioned independently from Spenso. Its canonical version history remains the spynso3 changelog source. This rendered copy integrates it with the manual, navigation, search, and product PDF.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

  • MathML output loads the full STIX Two Math font from a pinned CDN URL when it is not installed locally. Expressions share the font download and contain no embedded font bytes.

  • symbolica.community.tensor.load_math_font() returns a style element with the bundled font for offline notebooks and standalone HTML exports. Display it once before expressions in the same HTML document:

    from IPython.display import HTML, display
    from symbolica.community import tensor as spenso
    
    display(HTML(spenso.load_math_font()))

    Keep this setup output when saving a notebook. Isolated output frames require their own setup; normal online output needs no setup cell.

  • TensorNetwork.trace and set_port_indices raise ValueError when the two ports they would contract both lie below the same power or function: the network cannot express that contraction without materializing the operation. A port whose partner lies outside the power or function is contracted with the operation’s result.

  • TensorNetwork(expression) admits a plain expression with compact, index-free ports, such as A(euc(2), euc(2))**3, as TensorExpression does: it has the same axes and components, or the same ValueError. Previously the network kept it as an opaque rank-0 scalar.

  • Tensor.to_numpy() accepts finite numeric Expression literals, including exact results of contracting numeric data. Other Expressions, such as 𝜋, still raise TypeError without being evaluated; literals outside the float64 range raise ValueError.

0.1.2 - 2026-01-14

Other

  • update versions

0.1.1 - 2025-12-15

Fixed

  • fix sum normalization in network parsing
  • fix warnings
  • fix add_assign with sparse tensors
  • fix projp
  • fix param docs and iter return type
  • fix pyo3_stubs

Other

  • Update implementation to pyo3-stub-gen 0.17
  • Update symbolica to 1.1.0
  • update linnet
  • add readmes
  • update to 0.17 pyo3_stub_gen
  • update linnet and make classattr to classmethods
  • move initialize to api
  • Release spenso-macros 0.3
  • update to symbolica 1.0
  • update sympolica to 0.20
  • Properly precontract scalars
  • Add back pyo3-stub-gen-derive
  • update to current dev symbolica and add pattern for pslash + m conjugate
  • first try conj
  • update python api
  • add function generic key
  • again
  • return any because python is dumb
  • update __iter__ method
  • use numpy doc format
  • add overloaded pyi stub gen