This is a demo version of the IPySigma jupyter/node.js application for graph visualization.
IPySigma is a lightweight python package coupled with a node-express/socket.io app. It is designed to support a seamless workflow for graph visualization in jupyter notebook by using the jupyterlab/services javscript library to leverage communication between networkx objects and sigma.js.
git clone
this repo and install both the python and node components.
The prototype python package is contained in the ipysig
folder.
-
From the root directory: Build and activate a clean python environment>=2.7.10 with requirements.txt using
virtualenv
. -
pip install -r requirements.txt
to get the required packages.
The node-express application is contained in the app folder.
-
Make sure your node version is >= v6.9.4 and that both
npm
andbower
are installed globally. -
From the root directory:
cd ./app
-
type
npm install
to install the node modules locally in theapp
top-level folder -
From
app
:cd ./browser
-
type
bower install
to install the bower_components folder (note: these steps might change in future versions with browserify)
-
At the root directory launch a jupyter notebook server and run the notebook
ipysig_test.ipynb
-
Follow the instructions for each cell :)