Resources

Running Notebooks

All class materials and practices are .ipynb (Jupyter notebook) files. Download them from the course website and run them in one of two ways.

Calvin provides a cloud-based JupyterLab environment through Coder — nothing to install.

  1. Log in at coder.cs.calvin.edu with your Calvin credentials
  2. Open your workspace — Python, JupyterLab, and all required libraries are pre-installed
  3. Download the .ipynb file from the course website
  4. Upload it to your workspace (drag-and-drop into the JupyterLab file browser, or use the upload button)
  5. Double-click the file to open it, then run cells with Shift + Enter

Tip: files persist in your workspace between sessions — always save before closing.

Option B — Local Installation

If you prefer to run notebooks on your own machine:

  1. Install Anaconda — includes Python, JupyterLab, and most scientific libraries
  2. Open a terminal (Anaconda Prompt on Windows) and install any missing libraries:
    pip install plotly otter-grader
    
  3. Download the .ipynb file from the course website into a local folder
  4. Launch JupyterLab:
    jupyter lab
    
  5. Navigate to the file in the JupyterLab file browser and open it

Jupyter Notebooks — Key Concepts

References:


Autograding with Otter

This course uses otter-grader for automatic feedback on in-class exercises and practices.

When you open a notebook, the first cell initializes the grader:

import otter
grader = otter.Notebook("notebook_name.ipynb")

After completing each task, run the check cell below it:

grader.check("task_name")

A ✅ means your answer passes the tests. If it fails, read the message and try again. For class exercises, this is just for your own feedback — nothing is collected. For practices, the same tests are used when your notebook is graded.

Installation (only needed for local setup — Coder already has it):

pip install otter-grader

Core Libraries

pandas — Data Manipulation & Analysis

plotly — Visualization

scikit-learn — Modeling & Machine Learning


Version Control

All code is managed with Git and hosted on GitHub.

Key commands:

git add .
git commit -m "description of changes"
git push