Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Jupyter widget implementation using d3-graphviz #329

Open
basnijholt opened this issue Nov 22, 2024 · 0 comments
Open

Python Jupyter widget implementation using d3-graphviz #329

basnijholt opened this issue Nov 22, 2024 · 0 comments

Comments

@basnijholt
Copy link

basnijholt commented Nov 22, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant