To install the package, run the following command in your environment:
pip install gvrenderor with uv:
uv add gvrenderIn your notebook, run the following command:
from gvrender import render_graphviz
render_graphviz(
"""
digraph {
Hello -> World
Hello -> Name
}
"""
)
(Optionally) Using graphviz library pip install graphviz:
from graphviz import Digraph
from gvrender import render_graphviz
dot = Digraph()
dot.edge("Hello", "World")
dot.edge("Hello", "Name")
render_graphviz(dot)
Here is a basic example of a marimo WebAssembly (WASM) notebook.