GenerationSession

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

GenerationSession

class GenerationSession

Attributes

Name Description
complete
failed
generated
kernels
mode
subtraction

complete

GenerationSession.complete: builtins.bool

failed

GenerationSession.failed: typing.Optional[builtins.str]

generated

GenerationSession.generated: typing.Optional[GeneratedIntegral]

kernels

GenerationSession.kernels: typing.Optional[Kernels]

mode

GenerationSession.mode: builtins.str

subtraction

GenerationSession.subtraction: builtins.str

Methods

Name Description
__repr__
_repr_html_
snapshot
step Run at most max_units indivisible native units on this caller’s thread

__repr__

GenerationSession.__repr__() -> builtins.str

_repr_html_

GenerationSession._repr_html_(slf: GenerationSession) -> builtins.str

snapshot

GenerationSession.snapshot() -> GenerationSnapshot

step

GenerationSession.step(
    max_units: builtins.int = 1,
    *,
    observer: typing.Optional[typing.Any] = None,
) -> GenerationSnapshot

Run at most max_units indivisible native units on this caller’s thread. False observers and KeyboardInterrupt pause; already completed work is retained. Numerical/algebra errors are terminal and expose no partial kernels.