Skip to content

Remove obsolete Comet integration#775

Draft
lanpa wants to merge 2 commits into
masterfrom
remove-comet-integration
Draft

Remove obsolete Comet integration#775
lanpa wants to merge 2 commits into
masterfrom
remove-comet-integration

Conversation

@lanpa

@lanpa lanpa commented Jul 7, 2026

Copy link
Copy Markdown
Owner

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

  • Delete tensorboardX/comet_utils.py (CometLogger, 387 lines)
  • Delete examples/demo_comet.py and screenshots/comet.gif
  • tensorboardX/writer.py:
    • Remove the comet_config constructor parameter and its docstring
    • Remove _get_comet_logger() and the _comet_config/_comet_logger attributes
    • Remove the self._get_comet_logger().log_*() call at the end of all 17 add_* methods and the .end() call in close()
    • Remove the four encoded_image_string assignments that existed only to feed Comet
  • Remove the "Using TensorboardX with Comet" section from README.md
  • HISTORY.rst mentions are kept as historical release notes

Breaking change

SummaryWriter(comet_config=...) now raises TypeError (consistent with the visdom/TorchVis removals). Related open issues #723 and #639 can be closed as obsolete once this merges.

Verification

  • Full test suite: 94 passed
  • ruff check tensorboardX: clean
  • mypy tensorboardX: no issues in 13 source files

🤖 Generated with Claude Code

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 <[email protected]>
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.31%. Comparing base (48a5f8a) to head (77f9ce7).

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     
Flag Coverage Δ
service 91.31% <ø> (+3.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tensorboardX/writer.py 88.92% <ø> (-0.77%) ⬇️

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.

1 participant