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.1.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.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tensorboard_plugin_hydrograph-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 94e494a4412b65635e6cb0345d524500bdc4663fb681bda6a25d4c0785cbbe77
MD5 a9ce3b87dace4e2dd1d3979c47680a7b
BLAKE2b-256 4b717d18e8ce846466ad80b7656ea09ad2aada72430eebc6bea181bfbb2b2555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tensorboard_plugin_hydrograph-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a98e715c5d656d5f0ae03528689ca595baf326228fcb8aac062423681269149d
MD5 3800d2c3f049a44c463d38827ab61a16
BLAKE2b-256 bacf27d8ce564a84295817d930072a7ee039140a9f045ff5cff7dcdadab5cb67

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