This repository contains the notebooks that are designed as part of the online networking course offered by the Centre for Networked Intelligence.
To run these notebooks on your local machine, make sure that you have python installed, preferably version 3.x.
The next step is to install python-virtualenv
, this creates an isolated environment to run different packages. To install virtualenv, use the following command, for Linux and Unix
pip3 install virtualenv
In Windows, you can install virtualenv using just pip
instead of pip3
.
The last step, before getting started on the notebooks will be to start the virtualenv and install the packages which is done by running the following commands:
source network-algo-dev-env/bin/activate
will be the start the python virtual environment.pip3 install -r requirements.txt
will install all the packages that are not present (these packages are available only within the virtual environment)jupyter notebook
will start the jupyter notebook server, and the notebooks can be accessed from thenotebooks/
directory- Once you are done, you can exit from the python virtual environment by typing
deactivate
- You can also delete the directory after the use and none of the packages installed will remain in your system.
We list the steps to run the notebooks in google colab.
-
Open google colab : https://colab.research.google.com/
-
From File menu, select "Open notebook".
-
Select the GitHub tab.
-
In the search bar, paste the github link (the Github url for the notebook). For example, to open the notebook on Dijkstra, the github link is https://github.com/cni-iisc/computer-networks-course/blob/master/notebooks/1_dijkstra.ipynb
-
Add the following two line to a cell on top of the notebook and execute:
``` !git clone https://github.com/cni-iisc/computer-networks-course.git !ln -sf computer-networks-course/modules modules ```