For PyCon, PyData, ODSC, and beyond!
Jupyter Notebook Other
Permalink
Failed to load latest commit information.
custom added functions to load more data. Jun 24, 2016
datasets added a whole ton of datasets for the tutorial. Jun 24, 2016
images remade graphs. Jun 26, 2016
.gitignore allowed PNG images Jun 24, 2016
0. Pre-Tutorial Exercises.ipynb post-tutorial run Jul 13, 2016
1. Preface.ipynb re-run after tutorial. Jul 11, 2016
2. Network(X) Basics (Instructor).ipynb fixed documentation link Jul 13, 2016
2. Network(X) Basics (Student).ipynb Cleared outputs Jun 26, 2016
3. Hubs and Paths (Instructor).ipynb updated notebooks by removing need to remove nodes Dec 2, 2016
3. Hubs and Paths (Student).ipynb updated notebooks by removing need to remove nodes Dec 2, 2016
4. Cliques, Triangles and Graph Structures (Instructor).ipynb Wrote more efficient versions of triangle and open triangle finding Jul 13, 2016
4. Cliques, Triangles and Graph Structures (Student).ipynb Wrote more efficient versions of triangle and open triangle finding Jul 13, 2016
5. Loading and Visualizing Network Data (Instructor).ipynb re-run after tutorial. Jul 11, 2016
5. Loading and Visualizing Network Data (Student).ipynb Fixed code indentation issue. Jul 10, 2016
6. Network Statistical Inference (Instructor).ipynb re-run after tutorial. Jul 11, 2016
6. Network Statistical Inference (Student).ipynb finished nb6 Jun 26, 2016
7. Bipartite Graphs (Instructor).ipynb re-run after tutorial. Jul 11, 2016
7. Bipartite Graphs (Student).ipynb minor slide change Jul 10, 2016
8. One More Thing....ipynb re-run after tutorial. Jul 11, 2016
LICENSE Initial commit Dec 26, 2014
README.md changed README instructions to install hiveplot and circos from my ow… Jul 7, 2016
Synthetic Social Network.pkl Graph basics and intermediates Jan 31, 2015
checkenv.py Added circus to environment setup scripts. Jun 24, 2016
conda-setup.sh Added conda-setup script May 27, 2016
environment.yml added condo-forge as a channel to search for packages Jul 9, 2016
requirements.txt Added circus to environment setup scripts. Jun 24, 2016
venv-setup.sh added environment checking May 27, 2016

README.md

Network-Analysis-Made-Simple

Getting Set Up

For this tutorial, you will need the following packages:

  1. Python 3
  2. matplotlib
  3. networkx
  4. pandas
  5. hiveplot - conda install -c ericmjl hiveplot or pip install hiveplot.
  6. circos - conda install -c ericmjl circos or pip install circos
  7. numpy
  8. scipy

Clone the repository

  1. $ cd /path/to/your/directory
  2. Clone the repository to disk:
    1. $ git clone https://github.com/ericmjl/Network-Analysis-Made-Simple.git
  3. $ cd Network-Analysis-Made-Simple

Easiest way: Anaconda Distribution of Python

If you have the Anaconda distribution of Python 3 installed, then run bash conda-setup.sh, which wraps the commands below.

  1. $ conda env create -f environment.yml
  2. $ source activate network

Check your environment by running the following command:

  1. $ python checkenv.py

If you do not have the Anaconda distribution, I would highly recommend getting it for Windows, Mac or Linux. It provides an isolated Python computing environment that will not interfere with your system Python installation, and comes with a very awesome package manager (conda) that makes installation of new packages a single conda install pkgname away.

If you're not using Python 3, then check out @jakevdp's talk at SciPy2015 to find out why!

Alternative to Anaconda: pip install

For those who do not have the capability of installing the Anaconda Python 3 distribution on their computers, please follow the instructions below.

Run bash venv-setup.sh, which wraps up the commands below. Special thanks to @matt-land for putting this script together.

  1. Create a virtual environment for this tutorial, so that the installed packages do not mess with your regular Python environment.
    1. $ pip install virtualenv
    2. $ virtualenv network
    3. $ source network/bin/activate
  2. $ pip install matplotlib networkx pandas hiveplot numpy jupyter

Check your environment:

  1. $ python checkenv.py

Run the Jupyter Notebook

$ jupyter notebook

Your browser will open to an index page where you can click on a notebook to run it.

Feedback

If you've attended this workshop, please leave feedback!.

Issues

Known Issues

If you get a "Python is not installed as a framework" error with matplotlib, please check out this issue for instructions to resolve it.

New Issues

If you're facing difficulties, please report it as an issue on this repository.

Credits

  1. Divvy Data Challenge: https://www.divvybikes.com/datachallenge

Resources

  1. Jon Charest's use of Circos plots to visualize networks of Metal music genres. blog post | notebook

People

Many thanks to the following users who have contributed to improving the content and finding bugs.

  1. @jzab
  2. @muthazhagu
  3. @ghirlekar
  4. @jamesbev
  5. @romanchyla
  6. @jonchar
  7. @remik
  8. @matt-land
  9. @smacleod
  10. @RyPeck
  11. @zmilicc