Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version License: MIT

gvrender

Render DOT language graphs in notebooks

Installation

To install the package, run the following command in your environment:

pip install gvrender

or with uv:

uv add gvrender

Getting Started

In your notebook, run the following command:

from gvrender import render_graphviz

render_graphviz(
    """
    digraph {
        Hello -> World
        Hello -> Name
    }
    """
)
image

(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)
image

Render it in a Jupyter notebook

image

Render it in a JupyterLite notebook

image

Render it in a marimo notebook or a marimo WebAssembly (WASM) notebook

image

Here is a basic example of a marimo WebAssembly (WASM) notebook.

About

Render DOT language graphs in notebooks (jupyterlab, jupyterlite, marimo).

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages