Skip to content

Latest commit

 

History

History
88 lines (73 loc) · 3.26 KB

README.md

File metadata and controls

88 lines (73 loc) · 3.26 KB

Numberphile

ben sparks

Video Description

Ben Sparks explains (and codes) the so-called SIR Model being used to predict the spread of cornavirus (COVID-19).

LINKS

SOME OTHER YOUTUBERS ON THIS TOPIC...

NUMBERPHILE

Videos by Brady Haran (@BradyHaran)

Tips & Tricks

# Activate environment
workon numberphile

# Update packages from requirements.txt
pip-sync
 
# Install new package & update requirements.txt
pip install new-package-name
pip freeze  # to check version number

# copy paste package & version to requirements.in
pip-compile requirements.in
pip-sync

Setup

# Install virtualenv
pip install virtualenv


# Install virtualenvwrapper (http://virtualenvwrapper.readthedocs.org/en/latest/index.html)
pip install virtualenvwrapper
# Tell shell to source virtualenvwrapper.sh and where to put the virtualenvs by adding following to .zshrc
zshconfig
#    # "Tell shell to source virtualenvwrapper.sh and where to put the virtualenvs"
#    export WORKON_HOME=$HOME/.virtualenvs
#    export PROJECT_HOME=$HOME/code
#    source /usr/local/bin/virtualenvwrapper.sh
source ~/.zshrc
source /usr/local/bin/virtualenvwrapper.sh
# Now let's make a virtualenv
mkvirtualenv venv
workon venv
# Commands `workon venv`, `deactivate`, `lsvirtualenv` and `rmvirtualenv` are useful
# WARNING: When you brew install formulae that provide Python bindings, you should not be in an active virtual environment.
# (https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md)
deactivate


# Create virtualenv & install packasges
mkvirtualenv numberphile
pip install pip-tools
pip-sync
python -m ipykernel install --user --name numberphile --display-name "Python (numberphile)"

# Install Jupyter extensions JS/CSS & enable required extensions
jupyter contrib nbextension install
jupyter nbextension enable toc2/main

# Initialise nbinteract & create .html
nbinteract init
nbinteract notebooks/The_Coronavirus_Curve.ipynb