Module Zero Test 001

Note: Module Zero appears to not work as desired when run inside of Nextjournal. My guess is that Nextjournal does not support out-ofthe-box multi-file import/creation from inside of a NJ notebook, but more testing would be required to validate this hypothesis.

import requests
import zipfile
0.2s
# Download datasets zip file & lesson notebooks to Jupyter
rootlocation = r"https://raw.githubusercontent.com/priesterkc/Data-Analytics-Lessons/master/Lv1_Lessons/"
location = rootlocation + "datasets.zip"
otherlocations = ['Module 1 - Basic Python.ipynb', 'Module 2 - Explore Data.ipynb', 'Module 3 - Data Manipulation.ipynb',
                 'Module 4 - Data Visualization.ipynb', 'Module 5 - Time Series.ipynb', 'Module 6 - Correlation and Models.ipynb',
                 'Module 7 - Linear Regression.ipynb', 'Module 8 - Logistic Regression.ipynb', 'Module 9 - Decision Trees.ipynb']
r = requests.get(location, allow_redirects=True)
open('datasets.zip', 'wb').write(r.content)
for loc in otherlocations:
    location = rootlocation + loc
    r = requests.get(location, allow_redirects=True)
    open(loc, 'wb').write(r.content)
# Unzip zip file to datasets folder
zip_ref = zipfile.ZipFile('datasets.zip', 'r')
zip_ref.extractall('')
zip_ref.close()
3.9s
rootlocation = r"https://raw.githubusercontent.com/priesterkc/Data-Analytics-Lessons/master/Lv1_Lessons/YourTurnExercises/"
otherlocations = ['Mod1Exercises.ipynb', 'Mod2Exercises.ipynb', 'Mod3Exercises.ipynb',
                 'Mod4Exercises.ipynb', 'Mod5Exercises.ipynb', 'Mod6Exercises.ipynb',
                 'Mod7Exercises.ipynb', 'Mod8Exercises.ipynb', 'Mod9Exercises.ipynb']
for loc in otherlocations:
    location = rootlocation + loc
    r = requests.get(location, allow_redirects=True)
    open(loc, 'wb').write(r.content)
2.0s

Appendix

This repo is mounted by: Python
Runtimes (1)