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

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.9
File Size Uploaded Provenance Actions
holoviz_utils-0.6.9.tar.gz 857.5 kB With provenance Details for holoviz_utils-0.6.9.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / holoviz_utils-0.6.9.tar.gz

Download URL holoviz_utils-0.6.9.tar.gz
Size 857.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7ab563c664f01b99640c7eae3d60980e3bf2129bb9ddab99364d340b240daa32
BLAKE2b-256 checksum
How to use checksums
223a5618891749e2e6111da8a7ee623c94629e16aa8131b233394281afb77c5e
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.9-py3-none-any.whl

Download URL holoviz_utils-0.6.9-py3-none-any.whl
Size 794.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c25e465b15888bf888e8d1a4e7d5bc952a3f8485d3bbc3bd0df7f61b1f845771
BLAKE2b-256 checksum
How to use checksums
33296f68f333dbac8636921d0f58f6a49c281d34e79f83dab69988a9033fa470
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.9

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