A browser-based version of A First Course in Quantitative Economics with Python powered by Pyodide and JupyterLite.
Live site: https://quantecon.github.io/lecture-wasm/
This repository contains a WASM-compatible subset of the QuantEcon lecture series. Using the Pyodide kernel, these lectures run entirely in the browser without requiring any local Python installation.
- Node.js 20.x or higher
# Install dependencies
npm install -g mystmd@1.9.1 thebe-core thebe thebe-lite
# Build
cd lectures
myst build --html
# Serve locally (http://localhost:3000)
myst startDo not edit lectures directly in this repository.
Lectures are synced from the wasm branch of lecture-python-intro. To update:
- Make changes in the wasm branch of
lecture-python-intro - Run the sync script:
python update_lectures.py
The sync script downloads the latest content, converts !pip to %pip, removes --upgrade flags, and fixes MyST directive syntax for WASM compatibility.
- Push to
main— Builds and deploys to GitHub Pages - Pull requests — Builds and deploys a preview to Netlify
The following lectures are excluded due to Pyodide/WASM package limitations:
business_cycleinequalityprob_distheavy_tailscommod_pricelp_introshort_pathinput_output
- MyST Markdown — Content format and build system
- Pyodide — Python runtime in WebAssembly
- JupyterLite — Browser-based Jupyter
- Thebe — Executable code cells
- QuantEcon Theme — MyST site theme
- Thomas J. Sargent — New York University; Hoover Institution
- John Stachurski — Research School of Economics, ANU