d3-graphviz
d3-graphviz copied to clipboard
Python Jupyter widget implementation using d3-graphviz
Hi all!
I wanted to let you know that I've created a Python Jupyter widget that uses d3-graphviz for interactive graph visualization. The project is available at https://github.com/pipefunc/graphviz-anywidget.
Some interesting implementation details that might be useful for others:
- We embed the WASM binary in the JavaScript bundle as base64
- Override the fetch API to intercept WASM file requests
This approach allows d3-graphviz to work in any Jupyter and VS Code environment without needing a separate file server. I thought this might be interesting to document or link to as an example of using d3-graphviz in Jupyter notebooks.
Thank you for maintaining this excellent library!