Social Network Analysis course
Install miniconda with python 3.6 from https://conda.io/miniconda.html Clone this respository to your machine using either of the following options:
- Install git from https://git-scm.com/downloads
- Open your command line tool (CMD for windows and terminal for Mac or Linux)
- Go to a directory where you would like to clone the repository
- Run
git clone git@github.com:napsternxg/GET17_SNA.git
- Download the latest zipfile of the source code from https://github.com/napsternxg/GET17_SNA/archive/master.zip
- Unzip the files to a directory
- Open your terminal and go to the folder where you have cloned or unzipped the files
- Run the command
conda env create -f environment.yml
. For help refer to Anaconda managing environment - The above command should install the required dependencies on your machine including all libraries
- Activate the environment using
source activate get17_sna
on Mac/Linux andactivate get17_sna
on Windows for help refer to Activating Environment - Once your environment is activated you are ready to run the code.
From the same directory where you have the cloned or unzipped files, run the following command.
jupyter notebook
This should launch a webpage in your browser with the notebook environment.
- The notebook NetworkX.ipynb has some basic code on getting started with NetworkX
- The notebook Twitter.ipynb has the demo code from class on running twitter based network analysis.
Please refer to Twitter App Creation page for details on getting your API keys.