Add Spotlight integration for interactive visualization #1205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What’s Implemented:
A complete integration between DeepForest and Renumics Spotlight, enabling users to visualize annotations, predictions, and datasets interactively.
Core Features:
view_with_spotlight()for main visualization workflow.df.spotlight()for convenient usage within pandas workflows.API Overview
Option 1: Wrapper Function (Primary)
Option 2: DataFrame Accessor (Convenience)
Advanced Capabilities
Implementation Details:
New Files
src/deepforest/visualize/spotlight_adapter.py– Core Spotlight integration.src/deepforest/visualize/spotlight_export.py– Gallery-to-Spotlight packaging utilities.docs/getting_started/spotlight.md– Getting Started guide with examples and screenshots.docs/user_guide/examples/demo_spotlight.py– Demonstration script.Modified Files:
src/deepforest/visualize/__init__.py– Exposed new public API symbols.src/deepforest/scripts/cli.py– Added new gallery spotlight command.Testing and Quality:
Documentation:
Alignment with Roadmap:
Summary:
This implementation completes the requested Spotlight integration for DeepForest.
It provides a clean, well-tested, and production-ready workflow for interactive dataset visualization, fully aligned with the maintainer’s roadmap and project standards.
Fixes #1172