Skip to main content

TensorBoard plugin for interactive hydrograph visualization

Project description

tb_hydrograph

A TensorBoard plugin for interactive hydrograph visualization. Log observed vs. simulated time series with per-step metrics and browse them as an interactive Plotly chart inside TensorBoard.

Install

From PyPI-style wheel (once built):

uv pip install tensorboard_plugin_hydrograph

From source:

uv pip install .

Editable install for development:

uv pip install -e .

Build

This project uses uv with the hatchling build backend declared in pyproject.toml.

uv build

This produces both an sdist and a wheel under dist/. The plugin's static assets (tensorboard_plugin_hydrograph/static/*) are bundled into the wheel.

Usage

Log a hydrograph from your training loop:

from torch.utils.tensorboard import SummaryWriter
from tensorboard_plugin_hydrograph import add_hydrograph

writer = SummaryWriter("runs/exp1")
add_hydrograph(
    writer,
    tag="Hydrographs/Comparison",
    dates=dates,           # iterable of datetime-like values
    observed=observed,     # array-like
    simulated=simulated,   # array-like
    step=epoch,
    metrics={"NSE": 0.81}, # optional
)

Then launch TensorBoard against the same log directory:

tensorboard --logdir runs/

The Hydrograph tab will appear once the plugin detects logged summaries.

Development

uv venv
uv pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensorboard_plugin_hydrograph-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tensorboard_plugin_hydrograph-0.1.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file tensorboard_plugin_hydrograph-0.1.0.tar.gz.

File metadata

  • Download URL: tensorboard_plugin_hydrograph-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tensorboard_plugin_hydrograph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1424d7086f10b26da7ee46ee2186eaf6628d6d41e56ff93a322fad3c65848296
MD5 17d88485ff16fe92337f7bd1f902f479
BLAKE2b-256 fac19580a8b473feee077a1e4b6eb8dbaabf4d0cb2a3b1014ef340d3ffe3d3f8

See more details on using hashes here.

File details

Details for the file tensorboard_plugin_hydrograph-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tensorboard_plugin_hydrograph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tensorboard_plugin_hydrograph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3941b41cdf1c0fd438683a7aedf5d85bb4428cabbb52c20fda45b7658fd53a09
MD5 05da41c87e3ae4d0fccc085c76e36afc
BLAKE2b-256 a9e1f5bd175ccf09693b728f5b2ffbc1cdaa32de44a2ec69d9ac87257386449f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page