Skip to content

Interactive fitting session in the browser (WebSocket-streamed iterates) #36

Description

@joglekara

Later phase — the successor to the "Interactive (Under Development)" Streamlit mode. tesseract_ui.py runs an optax loop inside Streamlit reruns against a Tesseract on EC2 (started/stopped via boto3; the ECS tesseract services were removed in continuum-infra #68/#74). The rerun-the-whole-script model is exactly what made this feel clunky; a real frontend does it properly.

Shape

  • Backend session endpoint: start a fitting session (initial params + target spectrum), run the optimization loop server-side, stream iterates (params, loss, predicted spectrum) over a WebSocket
  • Frontend: live-updating spectrum overlay + parameter/loss traces; pause / resume / nudge-a-parameter / re-seed interactions
  • Session lifecycle: timeouts, one-session-per-user limits, cleanup

Open design questions

Depends on #32; infra conversation to be opened once the compute question has a number attached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions