The labs are Jupyter notebooks, one per session. Every one runs offline on a
laptop CPU with fixed seeds — no GPU, no API key, no paid service. Clone the
course repository once and git pull before each session; the labs read helpers and data
from the folders beside them, so a notebook downloaded on its own will not run. Session 1's last
deck, The Workbench, walks through every step below.
▶ Open in GitHub Codespaces Browse the repository
.devcontainer/devcontainer.json and installs everything in
requirements.txt automatically (first launch takes a few minutes).labs/ folder, then run the cells.Install Python 3.11, git and VS Code, then, in a terminal:
git clone https://github.com/vonzhg/AI-ECON-2026.git
cd AI-ECON-2026
python3 -m venv .venv # Windows: py -3.11 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
numpy pandas matplotlib scipy scikit-learn torch jupyter ipykernel
Then open the folder in VS Code, select the .venv kernel for the notebook, and
run its first cells: they print every package's version and say READY or what is
missing. On Windows and macOS the standard PyTorch install is already the CPU build.
One notebook per session, posted to the repository before the session meets; the syllabus says what each one asks.
The labs of the ten-lecture version taught at Zhejiang University in Summer 2026 stay available; the Summer 2026 page keeps the decks they went with.