Conversation
Remove the Comet.ml logging integration added in #625: the CometLogger class, the comet_config parameter of SummaryWriter, the per-method log_* forwarding calls, the demo example, and the README section. Historical release notes in HISTORY.rst are kept. Note: SummaryWriter(comet_config=...) now raises TypeError. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #775 +/- ##
==========================================
+ Coverage 87.83% 91.31% +3.47%
==========================================
Files 29 28 -1
Lines 1694 1532 -162
==========================================
- Hits 1488 1399 -89
+ Misses 206 133 -73
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Pull request overview
This pull request removes the obsolete Comet.ml integration from TensorboardX, continuing the project’s cleanup of unmaintained third-party integrations while keeping historical release notes intact.
Changes:
- Removes Comet integration plumbing from
SummaryWriter(constructor arg, logger lifecycle, and alladd_*Comet logging calls). - Deletes Comet-specific module and demo assets (Comet utility module + example).
- Removes the Comet usage section from the README and adds a regression test ensuring
comet_configis rejected.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tensorboardX/writer.py |
Removes Comet integration hooks and rejects comet_config in kwargs. |
tensorboardX/comet_utils.py |
Deletes the Comet logger implementation (entire module). |
examples/demo_comet.py |
Deletes Comet demo script that depended on the integration. |
README.md |
Removes Comet usage documentation section and associated screenshot reference. |
tests/test_summary_writer.py |
Adds a test asserting comet_config now raises TypeError. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+315
to
321
| if "comet_config" in kwargs: | ||
| raise TypeError( | ||
| "SummaryWriter.__init__() got an unexpected keyword argument 'comet_config'" | ||
| ) | ||
| if log_dir is not None and logdir is None: | ||
| logdir = log_dir | ||
| if not logdir: |
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.
Description
Removes the Comet.ml logging integration (added in #625, follow-ups #639/#658), continuing the cleanup of obsolete integrations (visdom in #768, TorchVis in #772).
Changes
tensorboardX/comet_utils.py(CometLogger, 387 lines)examples/demo_comet.pyandscreenshots/comet.giftensorboardX/writer.py:comet_configconstructor parameter and its docstring_get_comet_logger()and the_comet_config/_comet_loggerattributesself._get_comet_logger().log_*()call at the end of all 17add_*methods and the.end()call inclose()encoded_image_stringassignments that existed only to feed CometHISTORY.rstmentions are kept as historical release notesBreaking change
SummaryWriter(comet_config=...)now raisesTypeError(consistent with the visdom/TorchVis removals). Related open issues #723 and #639 can be closed as obsolete once this merges.Verification
ruff check tensorboardX: cleanmypy tensorboardX: no issues in 13 source files🤖 Generated with Claude Code