Skip to content

Fix tensorboard() with newer TensorBoard versions#628

Merged
t-kalinowski merged 3 commits into
mainfrom
fix/tensorboard
May 8, 2026
Merged

Fix tensorboard() with newer TensorBoard versions#628
t-kalinowski merged 3 commits into
mainfrom
fix/tensorboard

Conversation

@t-kalinowski
Copy link
Copy Markdown
Member

Summary

Closes #626.

Newer TensorBoard releases no longer support tensorboard --version_tb, which makes tensorflow::tensorboard() fail while detecting the TensorBoard version. This updates version detection to use tensorboard --version.

The PR also scopes a PYTHONWARNINGS filter to the spawned TensorBoard process to suppress TensorBoard's pkg_resources startup deprecation warning without changing warning behavior in the parent R session.

Public-facing changes

  • tensorflow::tensorboard() works with newer TensorBoard versions that removed --version_tb.

Internal-only changes

  • Adds a small helper for TensorBoard subprocess warning filters.
  • Avoids writing empty stderr output after TensorBoard startup.
  • Ignores local agent metadata directories in package/build ignore files.

Testing

  • devtools::load_all(); testthat::test_dir("tests/testthat")
  • Real tensorboard() launch with TensorBoard 2.20.0

@t-kalinowski t-kalinowski merged commit fed1fe7 into main May 8, 2026
9 checks passed
@t-kalinowski t-kalinowski deleted the fix/tensorboard branch May 8, 2026 15:49
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.

tensorboard() fails with newer tensorboard versions

1 participant