Add Spotlight integration for interactive visualization#1205
Add Spotlight integration for interactive visualization#1205Surjasa wants to merge 3 commits intoweecology:mainfrom
Conversation
|
This looks great. The tests are quite extensive, let's see if we can reduce the size fo the PR. If your using copilot or other code-assist, it can be really verbose and add lots of pieces. For example, just collapse the tests into one tests/test_spotlight.py |
|
Thank you for your review. As per your feedback, I have collapsed the tests into a single file |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1205 +/- ##
==========================================
- Coverage 87.38% 84.09% -3.30%
==========================================
Files 20 24 +4
Lines 2569 2968 +399
==========================================
+ Hits 2245 2496 +251
- Misses 324 472 +148
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@bw4sz I’ve resolved the previous doc test coverage issues and added the missing tests to meet the patch coverage requirements. The new tests increase coverage to 88%, and all failing checks have been addressed. |
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