Skip to main content

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 .

Metadata

Release files for tensorboard_plugin_hydrograph 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tensorboard_plugin_hydrograph 0.1.1
File Size Uploaded
tensorboard_plugin_hydrograph-0.1.1.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tensorboard_plugin_hydrograph 0.1.1
File Interpreter ABI Platform
tensorboard_plugin_hydrograph-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / tensorboard_plugin_hydrograph-0.1.1.tar.gz

Download URL tensorboard_plugin_hydrograph-0.1.1.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
94e494a4412b65635e6cb0345d524500bdc4663fb681bda6a25d4c0785cbbe77
BLAKE2b-256 checksum
How to use checksums
4b717d18e8ce846466ad80b7656ea09ad2aada72430eebc6bea181bfbb2b2555
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / tensorboard_plugin_hydrograph-0.1.1-py3-none-any.whl

Download URL tensorboard_plugin_hydrograph-0.1.1-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a98e715c5d656d5f0ae03528689ca595baf326228fcb8aac062423681269149d
BLAKE2b-256 checksum
How to use checksums
bacf27d8ce564a84295817d930072a7ee039140a9f045ff5cff7dcdadab5cb67
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page