v0.1.0
anywidget-graph v0.1.0
Interactive graph visualization for Python notebooks.
Features
- Sigma.js rendering for performant large graph visualization
Graph.from_dict()- create from nodes/edges dictionaryGraph.from_cypher()- parse Cypher query results (Neo4j/Grafeo)- Interactive - node/edge click events, selection state
- Universal - works with Marimo, Jupyter, VS Code, Colab
Installation
```bash
uv add anywidget-graph
```
Quick Start
```python
from anywidget_graph import Graph
graph = Graph.from_dict({
"nodes": [{"id": "a", "label": "Alice"}, {"id": "b", "label": "Bob"}],
"edges": [{"source": "a", "target": "b", "label": "knows"}]
})
graph
```