Interactive Visualizer for T1C-IR Graphs
Project description
T1C-Viz - Interactive Visualization for T1C-IR Graphs
T1C-Viz generates beautiful, interactive HTML visualizations of T1C-IR computation graphs using D3.js and ELK for automatic layout. View your neural network architectures in Jupyter notebooks or export standalone HTML files.
T1C-Viz provides an intuitive way to explore and understand T1C-IR computation graphs, making it easier to debug, analyze, and document neuromorphic neural network architectures.
Read more about T1C-IR in our documentation
Installation
uv add t1c-viz@git+ssh://git@github.com:type1compute/t1cir.git
Or with Jupyter support:
uv add "t1c-viz[jupyter]@git+ssh://git@github.com:type1compute/t1cir.git"
Quick Start
from t1c import ir, viz
# Load a graph
graph = ir.read('model.t1c')
# Display interactively (opens browser or shows in Jupyter)
viz.visualize(graph, title="My SNN Model")
Display Methods
Browser Display
Outside Jupyter, opens in default browser:
viz.visualize(graph, title="My SNN Model")
# Output: Visualization written to: /tmp/t1c-viz/My_SNN_Model_xxx.html
Jupyter Display
In Jupyter notebooks, displays as embedded iframe:
viz.visualize(graph, title="My SNN", width=960, height=640)
Export to File
Save as standalone HTML:
path = viz.export_html(graph, "model.html", title="Production Model")
print(f"Saved to: {path}")
The HTML is self-contained - no server needed.
Features
Graph Visualization (Left Panel)
- Dagre layout: Automatic hierarchical graph layout
- SNN-specific styling: LIF neurons shown with distinctive spiking icon
- Interactive: Pan, zoom, click nodes to inspect
- Parameter display: Shows tau/theta on neuron nodes, kernel sizes on convolutions
Data Explorer (Right Panel)
- HDF5 tree: Navigate graph structure
- Array visualization: Heatmaps for weights, line plots for biases
- Statistics: Min, max, mean, std for all arrays
- Bidirectional sync: Click in tree to highlight node in graph
Node Colors
| Primitive | Color | Description |
|---|---|---|
| Input | Green | Graph entry points |
| Output | Red | Graph exit points |
| Affine | Blue | Linear layers |
| SpikingAffine | Purple | Quantized affine with spike hints |
| LIF | Cyan | Leaky integrate-and-fire neurons |
| Conv2d | Orange | 2D convolution |
| SepConv2d | Deep Orange | Depthwise separable convolution |
| MaxPool2d | Brown | Max pooling |
| AvgPool2d | Blue Grey | Average pooling |
| Flatten | Grey | Reshape operations |
| Skip | Yellow | Residual/skip connections |
Development
From the repo root (requires t1c-ir installed first):
uv pip install -e .
pytest tests/ -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file t1c_viz-0.0.1-py3-none-any.whl.
File metadata
- Download URL: t1c_viz-0.0.1-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c2e9b9a7066d762fca9ed4adf86ad143b910eb716846de40d78243eb525642b
|
|
| MD5 |
80f9356e09a8653dcb0e3eb7cf4be453
|
|
| BLAKE2b-256 |
033d0171d2360484803e5cf0025e0fa873c5113df5f457e5dc2d5de18a8a0b35
|
Provenance
The following attestation bundles were made for t1c_viz-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on type1compute/t1cviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
t1c_viz-0.0.1-py3-none-any.whl -
Subject digest:
3c2e9b9a7066d762fca9ed4adf86ad143b910eb716846de40d78243eb525642b - Sigstore transparency entry: 912480909
- Sigstore integration time:
-
Permalink:
type1compute/t1cviz@a7bd960847f6dc4901eb8041686cb573adbc658c -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/type1compute
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a7bd960847f6dc4901eb8041686cb573adbc658c -
Trigger Event:
push
-
Statement type: