Environment:1kbgz Tributary Graph Visualization Stack
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Visualization |
| Last Updated | 2026-10-14 09:15 GMT |
Overview
Python environment with Graphviz and ipydagred3 for rendering and interactively visualizing tributary dataflow graphs.
Description
This environment provides the visualization stack for tributary graphs. The `graphviz` Python package renders static graph diagrams (with color-coded node states for lazy evaluation). The `ipydagred3` package provides interactive DagreD3-based graph rendering in Jupyter notebooks, with live node state updates (red for dirty, white for clean). Both lazy and streaming nodes include `_DagreD3Mixin` for live visualization support. The system-level `graphviz` binary (`dot`) is required for static rendering.
Usage
Use this environment when visualizing tributary graphs — both lazy evaluation graphs (via `graphviz()` and `dagre()` methods on `LazyGraph`) and streaming data pipelines (via `graphviz()` and `dagre()` methods on `StreamingGraph`). Required by Lazy_Graph_Visualization and Streaming_Output_Sinks (which includes GraphViz and DagreD3 output sinks).
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux, macOS, or Windows | System graphviz binary required |
| Hardware | Any CPU | No GPU required |
| Disk | 50MB | graphviz binary + Python packages |
Dependencies
System Packages
- `graphviz-dev` (the Graphviz system binary and dev libraries)
Python Packages
- `graphviz` >= 0.10.1 (Python wrapper for graphviz binary)
- `ipydagred3` >= 0.1.5 (interactive DagreD3 widget for Jupyter)
- `ipython` >= 7.0.1 (IPython display support)
- `ipython` kernel (for Jupyter notebook integration)
Credentials
No credentials are required for this environment.
Quick Install
# Install system graphviz (Ubuntu/Debian)
sudo apt-get install graphviz-dev
# Install Python visualization packages
pip install graphviz>=0.10.1 ipydagred3>=0.1.5 ipython>=7.0.1
Code Evidence
DagreD3 mixin usage from `tributary/streaming/node.py:5`:
from .dd3 import _DagreD3Mixin
class Node(NodeSerializeMixin, _DagreD3Mixin, object):
Lazy node DagreD3 from `tributary/lazy/node.py:10`:
from .dd3 import _DagreD3Mixin
class Node(_DagreD3Mixin):
Graphviz method from `tributary/streaming/graph.py:127-131`:
def graphviz(self):
return self._starting_node.graphviz()
def dagre(self):
return self._starting_node.dagre()
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `ExecutableNotFound: 'dot'` | System graphviz binary not installed | `sudo apt-get install graphviz-dev` |
| `ImportError: No module named ipydagred3` | ipydagred3 not installed | `pip install ipydagred3>=0.1.5` |
| DagreD3 widget not rendering | Not running in Jupyter or missing widget extension | Run `jupyter nbextension enable --py ipydagred3` |
Compatibility Notes
- System graphviz: The Python `graphviz` package is only a wrapper; the system `dot` binary must be installed separately.
- Jupyter: ipydagred3 requires a running Jupyter notebook environment with the widget extension enabled.
- Binder: The `binder/apt.txt` file installs `graphviz-dev` and `binder/requirements.txt` includes the visualization packages for Binder notebooks.
- Multiprocess mode: DagreD3 live updates are disabled when running in subprocess scheduler mode (`Print._multiprocess = "yes"`).