Skip to content

Move plotting dependencies to optional group #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 10, 2025
Merged

Move plotting dependencies to optional group #217

merged 3 commits into from
Jul 10, 2025

Conversation

corbt
Copy link
Contributor

@corbt corbt commented Jul 10, 2025

Summary

  • Moved matplotlib, seaborn, and polars from core dependencies to an optional [plotting] dependency group
  • Added proper import error handling in all affected modules with helpful error messages
  • Core dependencies are now reduced to just openai, litellm, typer, and panza

Motivation

This change makes it easier for users to adopt RULER and other lightweight features without pulling in heavyweight dependencies. Users who only need the ART client won't need to install plotting libraries.

Changes

  • Created new [plotting] optional dependency group in pyproject.toml
  • Updated all modules using these dependencies to handle missing imports gracefully
  • Added clear error messages directing users to install with pip install openpipe-art[plotting]

Test plan

  • Verified all imports have proper error handling
  • Test that core functionality works without plotting dependencies
  • Test that plotting functionality works when dependencies are installed

🤖 Generated with Claude Code

corbt and others added 2 commits July 8, 2025 17:24
…y group

This reduces the core dependencies for users who only need the ART client,
making it easier to adopt RULER and other lightweight features. Core deps
are now just openai, litellm, typer, and panza.

- Created new [plotting] optional dependency group
- Added proper import error messages directing users to install openpipe-art[plotting]
- Updated all affected modules to handle missing plotting dependencies gracefully

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@corbt corbt merged commit 530cb18 into main Jul 10, 2025
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.

2 participants