Skip to content

Update greedy_search_pucks demo to use new ChartPuck API#108

Merged
koaning merged 1 commit intomainfrom
koaning/greedy-search-api
Jan 26, 2026
Merged

Update greedy_search_pucks demo to use new ChartPuck API#108
koaning merged 1 commit intomainfrom
koaning/greedy-search-api

Conversation

@koaning
Copy link
Owner

@koaning koaning commented Jan 26, 2026

Summary

Updated demos/greedy_search_pucks.py to use the new ChartPuck API introduced in PR #107.

Changes

  • Updated draw function signature from draw_fn(ax, x, y) to draw_fn(ax, widget)
  • Simplified puck position access to use the widget parameter directly
  • Removed unnecessary widget_ref closure pattern
  • Updated wigglystuff dependency to 0.2.17

The demo now follows the recommended pattern for dynamic chart updates using ChartPuck callbacks.

@koaning koaning merged commit 3ea1d9d into main Jan 26, 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