Skip to content

Python Jupyter widget implementation using d3-graphvizΒ #329

@basnijholt

Description

@basnijholt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions