Back to directory

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

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.

More in Tutorials

See all 478
  • BootLife

    github.com

    Conway's Game of Life implemented to run directly from a 512-byte x86 boot sector in assembly, using VGA memory itself as the simulation grid.

  • A technical blog post deriving the Y combinator as a composition of combinator birds in an array language, and examining how eager evaluation changes fixed-point recursion compared with the usual lazy telling.

  • System Design Atlas

    atlas-sysdes.vercel.app

    A free reference of worked system design problems with interactive architecture diagrams, covering ranked designs such as a feed, a chat app, a URL shortener, and a rate limiter, plus pages on the technologies behind them.