Skip to content

Conversation

@koaning
Copy link
Owner

@koaning koaning commented Jan 27, 2026

Allow users to set the number of available classes (1-4) via the n_classes parameter. When n_classes=1, class buttons are automatically hidden since they're unnecessary for single-class mode. Also improves grid visibility in light mode by increasing opacity and darkening the grid color.

Changes

  • Add n_classes trait to ScatterWidget (default 4)
  • Dynamically render class buttons based on n_classes
  • Hide separator when n_classes=1
  • Increase grid line visibility with darker colors and higher opacity

koaning and others added 10 commits January 27, 2026 14:12
Allow users to set n_classes (1-4) to configure the number of available classes. When n_classes=1, the class buttons are automatically hidden since they're unnecessary for single-class mode. Improve grid visibility in light mode.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
These are dev/demo-only tools, not runtime dependencies.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Users install pandas/polars/numpy if they want those features.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@koaning koaning merged commit 1d548b2 into main Jan 27, 2026
3 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.

2 participants