Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nx2d3

Display NetworkX graphs inline in Jupyter notebooks

Installing

From the latest code on GitHub with:

$ python3 -m pip install git+https://github.com/cthoyt/nx2d3.git

Example

>>> import networkx as nx
>>> import nx2d3
>>> G = nx.petersen_graph()
>>> nx2d3.embed_networkx(G)

Note: GitHub will not render custom javascript on https://github.com/cthoyt/nx2d3/blob/master/example.ipynb. Instead, try nbviewer http://nbviewer.jupyter.org/github/cthoyt/nx2d3/blob/master/example.ipynb or viewing the notebooks in jupyter notebook locally.

About

Display NetworkX graphs inline in Jupyter notebooks

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages