Skip to main content

holoviz-utils

A Python package for HoloViz utilities.

Installation

pip install -e .

For development:

pip install -e ".[dev]"

Usage

import holoviz_utils

Caption templates

DataPresentation renders the __doc__ of its components — and its title / introduction / conclusion params — as live captions. Any {...} token is substituted against current parameter values and re-rendered automatically whenever a referenced value changes.

A token is {[func(]param[keys][:fmt])} (only param is required):

  • param — a parameter name, resolved on the presentation or any reachable sub-object (a DataCombiner, a layer, a colormap, …).
  • [keys] — index/key lookups. A quoted key (['label']) is literal; an unquoted key ([highlight_name]) is another param ref whose value is used as the key — this is how you turn a code into a display name.
  • func(...) — an optional whitelisted function (len, sum, min, max, abs, round, sorted, int, float, str, bool).
  • :fmt — an optional Python format spec (:0.1f, :,, %Y-%m-%d, …).

A token that resolves to None renders as unknown.

# highlight_name == "Q"; cmap_var_styles == {"Q": {"label": "Discharge (m³/s)"}, ...}
dgl.__doc__ = (
    "Time-series for the {cmap_var_styles[highlight_name]['label']} at the "
    "{click_state['properties']['S6_SB_NAME']} sub-basin."
)
# -> "Time-series for the Discharge (m³/s) at the <name> sub-basin."

"{len(subbasins)} sub-basins selected"   # -> "3 sub-basins selected"
"mean = {max(scores['a']):0.2f}"          # -> "mean = 12.34"

To add a code -> display mapping, just expose it as a parameter and reference {table[code_param]['field']} — no derived params or manual watchers needed. See DataPresentation.update_doc for the full reference.

Development

Run tests:

pytest

License

MIT

Metadata

Release files for holoviz-utils 0.6.7

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

Source distribution (sdist)

Source distribution for holoviz-utils 0.6.7
File Size Uploaded Provenance Actions
holoviz_utils-0.6.7.tar.gz 856.8 kB With provenance Details for holoviz_utils-0.6.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for holoviz-utils 0.6.7
File Interpreter ABI Platform Actions
holoviz_utils-0.6.7-py3-none-any.whl Python 3 none any Details for holoviz_utils-0.6.7-py3-none-any.whl

Total release size: 1.7 MB

Release files / holoviz_utils-0.6.7.tar.gz

Download URL holoviz_utils-0.6.7.tar.gz
Size 856.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a900e650c9d285fc5fddeef26d6196cda5777a148069cea84dd6c7f29a5779c
BLAKE2b-256 checksum
How to use checksums
97535a54a1e95f214c62fa3a51d69445f8906b4769495ff218de53383830b729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / holoviz_utils-0.6.7-py3-none-any.whl

Download URL holoviz_utils-0.6.7-py3-none-any.whl
Size 793.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4024ffc340d55e6279fbe796a193a4c2734a864ffd8312f3ab14fcd3edb03472
BLAKE2b-256 checksum
How to use checksums
643b3e1ae917b1ca1e2463d26d188cb720da455a9aa6f3eddea8be38d0dd9c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Security for holoviz-utils 0.6.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for holoviz_utils-0.6.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.7 This release

2 release files Full provenance

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