Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cthoyt/nx2d3
Display NetworkX graphs inline in Jupyter notebooks
https://github.com/cthoyt/nx2d3
Last synced: 29 days ago
JSON representation
Display NetworkX graphs inline in Jupyter notebooks
- Host: GitHub
- URL: https://github.com/cthoyt/nx2d3
- Owner: cthoyt
- Created: 2016-05-15T00:19:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T21:08:52.000Z (about 6 years ago)
- Last Synced: 2024-11-22T01:42:07.275Z (3 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
nx2d3
=====Display NetworkX graphs inline in Jupyter notebooks
Installing
----------
From the latest code on GitHub with:.. code-block:: sh
$ 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.