d0_graphviz
v0.0.2
Published
A JupyterLab extension for viewing graphviz files.
Readme
jupyterlab_graphviz
A JupyterLab extension for interactively viewing Graphviz data files, powered by viz.js.

Editing and viewing DOT language files
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
Inline rendering
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).
Pan and zoom
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.
Text Search in Diagrams
Diagrams are rendered directly as SVG elements, so normal browser search can find text.
Installation
Prerequisites
- JupyterLab ≥ 0.32
- nodejs ≥ 6
For example, via
conda:
conda install -c conda-forge jupyterlab nodejsjupyter labextension install jupyterlab_graphvizDevelopment
Install dependencies
jlpmBuild the extension
jlpm buildInstall into to my JupyterLab
jupyter labextension link .Rebuild once
To rebuild the package and the JupyterLab app:
jlpm build
jupyter lab buildDevelop continuously
jlpm watch
# and in another terminal
jupyter lab --watchCheck and apply project style
jlpm lintTODO
- add tests
- add Save as...
- build bundle for nbviewer
