Skip to content
A short tutorial on network analysis using Game of Thrones, US Airports and Python!
HTML Jupyter Notebook Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ipynb_checkpoints up Mar 24, 2019
archive add archive Oct 18, 2018
community push Aug 11, 2018
data push Aug 11, 2018
images up Nov 19, 2017
.DS_Store up Nov 19, 2017
CA-GrQc.txt up Nov 19, 2017
LICENSE up Nov 19, 2017 Add link to iris9112 spanish version Feb 12, 2019
US-aiports-instructor.html add html files Oct 19, 2018
US-aiports-instructor.ipynb up Mar 24, 2019
US-aiports-student.ipynb update Oct 19, 2018 changes Aug 10, 2018
environment.yml changes Aug 10, 2018
introduction-and-game-of-thrones-instructor.html add html files Oct 19, 2018
introduction-and-game-of-thrones-instructor.ipynb up Mar 24, 2019
introduction-and-game-of-thrones-student.ipynb up Mar 24, 2019
requirements.txt up Nov 19, 2017

Networks, Game of Thrones and US Airports.

NOTE: This repo will be updated before the tutorial so make sure to pull new changes.

Set Up

For this tutorial, you will need Python 3 and the following packages:

  • networkx
  • pandas
  • matplotlib
  • numpy
  • jupyter

Python2 may/may not work, no promises :)

Or you can use Binder (only if you have a stable WiFi connection) Binder

and another deployment of Binder

If you have a microsoft account you can use Microsoft Azure notebooks too using, click on clone and you are good to do :)

HTML notebooks

Clone/Download the repo

  • $ cd /path/to/your/directory
  • Clone the repository from GitHub $ git clone
  • $ cd pydata-networkx


  • Download the required notebooks from
  • unzip the files and change the directory to $ cd pydata-networkx-master

Install packages

Using pip and virtualenv

  • Create a virtual environment for this tutorial, so that the installed packages do not mess with your regular Python environment.
    • $ (sudo) pip install virtualenv
    • $ virtualenv -p python3 networkx
    • $ source networkx/bin/activate
  • $ pip install -r requirements.txt

Using Anaconda

If you have the Anaconda distribution of Python 3 installed, then run the commands below.

  • $ conda env create -f environment.yml
  • $ source activate networkx

Check your environment:

  • $ python

Run the Jupyter Notebook

$ jupyter notebook

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


There is an adpated version of this tutorial in Spanish, thanks to @iris9112 ->


This tutorial is built on and inspired by the previous offerings of this tutorial at PyData LA 2018, PyData NYC 2018, PyData Delhi 2018, SciPy 2018, PyCon US 2018, PyData London 2018, PyData NYC 2017, PyConDE 2017, PyCon PL 2017, EuroSciPy 2017, EuroSciPy 2016, SciPy India 2015 and is a part of (notebooks 7 and 8) Eric Ma's tutorial Network Analysis made Simple

You can’t perform that action at this time.