Skip to main content

No project description provided

Project description

PyPI version License: MIT

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

Render it in a Jupyter notebook

graphviznb

Render it in a JupyterLite notebook

graphviznb_jupyterlite

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

graphviznb_marimo

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gvrender-0.0.3-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for gvrender-0.0.3.tar.gz
Algorithm Hash digest
SHA256 596dc81fce2217964f0afb5b9c3e0dca41586c3a53e475684f852337cad21b5b
MD5 6388ab4d7ca6db28ac9a85b17e3709d3
BLAKE2b-256 efbdf3d0b6a40fe633ba5ed043f8673c8dd810e86c254ccb45b9ef26b06c2135

See more details on using hashes here.

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

Hashes for gvrender-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 984c76081c914c39f9c51e54cf35551f5bef43311404fe8a2e3b89ff1e6d573a
MD5 b9d10fadc3e62c06e1004390a07ab35e
BLAKE2b-256 ed60f7fa3f7f74df33ab0a7d873ef66ac0b90cc9c6cb4beb3c462f7caeedf66a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page