Skip to content

Add redraw() method to SplineDraw widget#148

Merged
koaning merged 2 commits intomainfrom
koaning/spline-redraw-callback
Feb 27, 2026
Merged

Add redraw() method to SplineDraw widget#148
koaning merged 2 commits intomainfrom
koaning/spline-redraw-callback

Conversation

@koaning
Copy link
Owner

@koaning koaning commented Feb 27, 2026

Summary

Expose a public redraw() method that allows users to retrigger spline recomputation when external state changes (e.g., hyperparameters controlled by another widget), or pass a new spline_fn to swap the fitting function entirely.

Test plan

  • Smoke-tested widget instantiation and redraw() with and without new function argument
  • Verified demo notebook structure with marimo check

🤖 Generated with Claude Code

Vincent D. Warmerdam and others added 2 commits February 27, 2026 14:57
Expose a public redraw() method that allows users to retrigger spline recomputation when external state changes, or pass a new spline_fn to swap the fitting function at runtime. Update demo notebook with an example showing adaptive fitting with a slider-controlled hyperparameter.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@koaning koaning merged commit cc1d64d into main Feb 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant