We'll be working in a Jupyter notebook and will use Virtualenv for installing the dependencies.
We're assuming that Python 3 and virtualenv are already installed on the system. Then, after cloning the repository we need to initialize the virtualenv directory and install the dependencies:
$ virtualenv venv/
$ pip3 install -r requirements.txt
The last part is initializing the kernel that we'll later use in the Jupyter notebook.
ipython kernel install --user --name=A_USEFUL_NAME_LIKE_THE_REPO_NAME
The Jupyter extensions and their configuration has already been installed by the preceding steps, but we still need to enable them.
First, we need to enable nbextensions itself:
jupyter contrib nbextension install --user
And then, unless we want to configure the extensions from the command line, we need to enable the extensions configurator:
jupyter nbextensions_configurator enable --user
For the record, I have enabled:
- Collapsible headings
- Autopep8
- Table of Contents (2)
Then we can work in the notebook as usual. Just pay attention to select the kernel that we just installed.
jupyter notebook
The notebook assumes that the CSV data is in the data/
directory.