Visualizing HLO computation graphs
visu-hlo is a Python package that displays the HLO (High Level Operations) representation of JAX functions as SVG visualizations. This tool helps developers understand the computational graphs generated by XLA compilations.
Features
- 🎯 Easy Visualization: Display HLO graphs with a single function call
- ⚡ JIT Support: Works with both regular and jitted JAX functions
- 🖼️ SVG Output: High-quality vector graphics that scale perfectly
- 🖥️ Cross-Platform: Supports Linux, macOS, and Windows
- 📦 Lightweight: Minimal dependencies - just JAX and Graphviz
Quick Example
import jax.numpy as jnp
from visu_hlo import show
# Display optimized HLO (default)
show(lambda x: 3 * x * 2, jnp.ones(10))
To display the non-optimized HLO:
show(lambda x: 3 * x * 2, jnp.ones(10), jit=False)
To save as an SVG file:
from visu_hlo import write_svg
write_svg('graph.svg', func, jnp.ones(10))
Installation
pip install visu-hlo
System dependency: Install Graphviz
Documentation
Full documentation: https://visu-hlo.readthedocs.io/
License
MIT
Metadata
Release files for visu-hlo 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visu_hlo-1.1.0.tar.gz | 28.0 kB | With provenance | Details for visu_hlo-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visu_hlo-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for visu_hlo-1.1.0-py3-none-any.whl |
Total release size: 35.0 kB
Release files / visu_hlo-1.1.0.tar.gz
| Download URL | visu_hlo-1.1.0.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92aa3d256047dc115409deb5914bd923f1d162a5a8b9746e4085bd8ae4844d79
|
|
BLAKE2b-256 checksum How to use checksums |
89a031006311e329d791b61b1ce41f8f366491eee20404351019c29cf2832468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
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 Apr 1, 2026.
Transparency logRelease files / visu_hlo-1.1.0-py3-none-any.whl
| Download URL | visu_hlo-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b6a84f3edc79ed80048994226b34fb673bd9e3ad6da364648213c9cc4ea8c66
|
|
BLAKE2b-256 checksum How to use checksums |
cc021efd0a5da4a6c5791c7e1a3d70517d96d2e209041ff6f71b25896bacd5d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
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 Apr 1, 2026.
Transparency logSecurity for visu-hlo 1.1.0
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.
Attestation for visu_hlo-1.1.0.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 Apr 1, 2026.
Transparency logA 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.