logging improvements and version bump#79
Merged
parashardhapola merged 3 commits intomasterfrom Apr 2, 2026
Merged
Conversation
Review Summary by QodoProgress display rewrite with notebook support and logging improvements
WalkthroughsDescription• Simplified progress display from per-cluster to job-level status • Added Jupyter notebook support with in-place output updates • Improved logging with prominent report URL tracking before polling • Enhanced API URL migration and version bump to 0.19.4 • Added comprehensive unit tests for progress display and polling Diagramflowchart LR
A["Job Submission"] --> B["Log Report URL"]
B --> C["Start Polling"]
C --> D["Update Progress Display"]
D --> E{Display Mode}
E -->|TTY| F["Spinner + Elapsed Time"]
E -->|Notebook| G["Single Output Cell"]
E -->|Plain| H["Deduplicated Lines"]
F --> I["Job Completion"]
G --> I
H --> I
I --> J["Finalize with Status"]
J --> K["Show Failed Clusters if needed"]
File Changes1. cytetype/__init__.py
|
Code Review by Qodo
1.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Version bump: 0.19.3 → 0.19.4
API URL migration:
prod.cytetype.nygen.io→cytetype.nygen.io(acrossmain.py,README.md, and integration tests)Progress display rewrite (
cytetype/api/progress.py):ZMQInteractiveShelland uses an IPythonDisplayHandleto update a single output cell in-place instead of printing repeated linesMM:SS) in interactive terminalsfinalize()now accepts an explicitfinal_statusstring (completed,failed,timed_out) and only shows failed cluster details on failurestreamparameter for testabilityPolling loop improvements (
cytetype/api/client.py):_sleep_with_spinnernow receivesjob_status: strinstead of the fullcluster_statusdict, matching the simplified progress display_log_report_cta()helper that logs the report URL prominently under a[TRACK PROGRESS]headingPost-annotation report link (
cytetype/main.py):annotate()completes, the report URL is logged fromadata.uns["{prefix}_jobDetails"]["report_url"]validate_adatacall argumentsTests:
tests/test_api_client.py— unit tests forProgressDisplay(plain output dedup, notebook display handle updates) andwait_for_completion(verifies report CTA is logged before polling begins)tests/test_cytetype_integration.py— updated default API URL assertiontests/test_validation.py— reformatted@pytest.mark.parametrizecalls (style-only, no logic changes)