No project description provided
Project description
graphviz-nb
Render DOT language graphs in notebooks
Installation
To install the package, run the following command in your environment:
pip install graphviz-nb
or with uv:
uv add graphviz-nb
Getting Started
In your notebook, run the following command:
from graphviz_nb import render_graphviz
render_graphviz(
"""
digraph {
Hello -> World
Hello -> Name
}
"""
)
(Optionally) Using graphviz library pip install graphviz:
import graphviz
from graphviz_nb import render_graphviz
dot = graphviz.Digraph()
dot.edge("Hello", "World")
dot.edge("Hello", "Name")
render_graphviz(dot)
Render it in a Jupyter notebook
Render it in a JupyterLite notebook
Render it in a marimo notebook or a marimo WebAssembly (WASM) notebook
Here is a basic example of a marimo WebAssembly (WASM) notebook.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gvrender-0.0.3.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gvrender-0.0.3.tar.gz.
File metadata
- Download URL: gvrender-0.0.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596dc81fce2217964f0afb5b9c3e0dca41586c3a53e475684f852337cad21b5b
|
|
| MD5 |
6388ab4d7ca6db28ac9a85b17e3709d3
|
|
| BLAKE2b-256 |
efbdf3d0b6a40fe633ba5ed043f8673c8dd810e86c254ccb45b9ef26b06c2135
|
File details
Details for the file gvrender-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: gvrender-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
984c76081c914c39f9c51e54cf35551f5bef43311404fe8a2e3b89ff1e6d573a
|
|
| MD5 |
b9d10fadc3e62c06e1004390a07ab35e
|
|
| BLAKE2b-256 |
ed60f7fa3f7f74df33ab0a7d873ef66ac0b90cc9c6cb4beb3c462f7caeedf66a
|