ipycytoscape¶
Version: 1.3.2
Visualize graphs using Cytoscape.js in a Jupyter Notebook. You can either create graphs using the ipycytoscape API or create them from:
Quickstart¶
To get started with ipycytoscape, install with pip:
pip install ipycytoscape
or with conda/mamba:
conda install -c conda-forge ipycytoscape
# or with mamba
mamba install -c conda-forge ipycytoscape
If you are using JupyterLab 1.x or 2.x you will also need to follow the instructions in JupyterLab Installation.
Simple Example¶
from ipycytoscape import CytoscapeWidget
import networkx as nx
G = nx.complete_graph(5)
cyto = CytoscapeWidget()
cyto.graph.add_graph_from_networkx(G)
display(cyto)
joseberlines created a series of blog posts explaining key points on the functioning of ipycytoscape:
Learning and visualising Graphs with ipycytoscape Part_1
The series of notebook examples “Ipycytoscape from Scratch” found on this repository maps to these blog posts.
Contents¶
Graph Creation
Customization and Styling
Development