Coding for Economists
The source and build pipeline behind the online book Coding for Economists, which teaches programming and data-science techniques to an economics audience.
Coding for Economists is published as an online book meant to be read on its own website; this repository holds the book's source and is intended for people contributing to it rather than for readers. Contributions are expected to start with an issue discussing the change, followed by a pull request for corrections, typos or fixes to out-of-date package references.
Building the book needs a Python environment set up with uv, natural-language-processing models downloaded through spaCy and NLTK, particular Google fonts, and a TeX Live installation for LaTeX output, all of which a provided Dockerfile automates; the book itself is rendered with Quarto and can be previewed locally with a simple HTTP server. Proposed changes go through a local preview render, a full pre-commit check, and then a pull request for review.
A Docker-based development environment is also documented, using VS Code's remote-containers support to edit and rebuild the book inside the container. It is written primarily in Jupyter Notebook and Python and released under the MIT license.