Graphviz¶
Graph-
and Digraph
objects have a _repr_svg_()
method so that they
can be rendered and displayed directly in a Jupyter notebook.
Installation¶
With Spack you can provide Graphviz in your kernel:
$ spack env activate python-311
$ spack env status
==> In environment python-311
$ spack install py-graphviz
…
==> Successfully installed py-graphviz
…
==> Updating view at /srv/jupyter/spack/var/spack/environments/python-311/.spack-env/view
First, Graphviz is installed with:
$ sudo apt install graphviz
You can then install the corresponding Python package in your kernel:
$ pipenv install graphviz
First, Graphviz is installed with Homebrew:
$ brew install graphviz
You can then install the corresponding Python package in your kernel:
$ pipenv install graphviz