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.8

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.8
File Size Uploaded Provenance Actions
holoviz_utils-0.6.8.tar.gz 857.4 kB With provenance Details for holoviz_utils-0.6.8.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / holoviz_utils-0.6.8.tar.gz

Download URL holoviz_utils-0.6.8.tar.gz
Size 857.4 kB
Tags Source
SHA-256 checksum
How to use checksums
38698d30b035c1bde38e1c8fffd3bb5fe877ea1b00ea1ef3582c664bd94774b6
BLAKE2b-256 checksum
How to use checksums
beb93619d5ee3db5493eaf15dceff587b41f75745cec3f753a093325dcaf35cf
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.8-py3-none-any.whl

Download URL holoviz_utils-0.6.8-py3-none-any.whl
Size 794.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13df80e5be36b4b39e9705b7f991b3c66d998454ba592190bfb2475ba30f4c42
BLAKE2b-256 checksum
How to use checksums
a5417fd91f81e39ce6dc7719fe373b01af33cd7c671ce7c9e509c2af4c51a097
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.8

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.8.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.8 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