# download the software
import urllib
urllib.urlretrieve('https://github.com/sods/ods/archive/master.zip', 'master.zip')
# unzip the software
import zipfile
zip = zipfile.ZipFile('./master.zip', 'r')
for name in zip.namelist():
zip.extract(name, '.')
# add the module location to the python path.
import sys
sys.path.append("./ods-master/")
Now we download the latest lab class. First we specify the week we are downloading, then we ask pods to fetch it for us.
week_no = 4
import pods
pods.lab.download(course='machine_learning', name='week' + str(week_no))
week4.ipynb Downloading https://raw.githubusercontent.com/SheffieldML/notebook/master/lab_classes/machine_learning/week4.ipynb -> ./machine_learning/week4.ipynb [==============================] 0.021/0.021MB