Skip to content

timkpaine/ipydagred3

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ipydagred3

ipywidgets library for drawing directed acyclic graphs in jupyterlab using dagre-d3

Build Status codecov PyPI PyPI npm Binder

Installation

You can install using pip:

pip install ipydagred3

Or if you use jupyterlab:

pip install ipydagred3
jupyter labextension install @jupyter-widgets/jupyterlab-manager

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:

jupyter nbextension enable --py [--sys-prefix|--user|--system] ipydagred3

Features

  • Dynamically create and modify graphs from python
  • Change color, shape, tooltip, etc
  • Click events (click on node or edge and get event in ipywidget indicating source, good for node inspector tools)

Tooltips and Click events

Examples

Network example from the first gif Network Example

Tooltip Example from the second gif Tooltip Example