A JupyterLab extension for interactively viewing Graphviz data files, powered by viz.js.
Right-click on a supported file in the Files sidebar and choose Open with... ▶ dot.
The following DOT language file extensions are supported with live preview and syntax highlighting:
.gv.neato.dot
The following MIME types can also be rendered inline in Notebooks and Consoles:
application/vnd.graphviz.neatoapplication/vnd.graphviz
Check out some MIME examples in the [Cookbook](./samples/Graphviz Rich Display Cookbook.ipynb).
File-based and inline diagrams can be panned by clicking and dragging. Use a
mouse wheel, double click or the Zoom slider. Shift and double click zooms out.
Diagrams are rendered directly as SVG elements, so normal browser search can find text.
- JupyterLab ≥ 0.32
- nodejs ≥ 6
For example, via
conda:
conda install -c conda-forge jupyterlab nodejsjupyter labextension install jupyterlab_graphvizjlpmjlpm buildjupyter labextension link .To rebuild the package and the JupyterLab app:
jlpm build
jupyter lab buildjlpm watch
# and in another terminal
jupyter lab --watchjlpm lint- add tests
- add Save as...
- build bundle for nbviewer
