/paper-network-energy

Python implementation of the conventional and power network energy models from the Carbon Impact of Video Streaming report from The Carbon Trust.

Primary LanguageJupyter Notebook

Network energy

Setup

This is a Jupyter Notebook designed to run with a Python 3.10 kernel. Dependencies are defined in requirements.txt and installed automatically by the notebook.

Manual setup

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
nbdev_install_hooks

Git hooks

Git hooks from nbdev are used to clean notebooks before they're committed. This avoids committing all the metadata that changes on each run. See the nbdev Git hooks docs for more details.

Cleaning the notebook before commit can be done with nbdev_clean. Installing the Git hooks using nbdev_install_hooks will do this automatically on commit.