Contributing to QuantEcon Lectures
The QuantEcon Lectures are built using Jupyter Book and written in MyST Markdown. Each lecture series has its own repository:
- Python Programming for Economics and Finance
- Quantitative Economics with Python
- Advanced Quantitative Economics with Python
- Quantitative Economics with Julia
How to Contribute
We welcome contributions to the QuantEcon lectures! The best way to contribute is:
- Fork the repository you want to contribute to
- Create a branch for your changes
- Make your edits to the MyST Markdown files
- Submit a pull request with a clear description of your changes
For detailed contribution guidelines, please see the README file in each repository.
Building Lectures Locally
All lecture source files are written in MyST Markdown (.md files). To build the lectures locally:
- Clone the repository
- Create a conda environment using the provided
environment.yml - Run
jupyter-book build lectures
Detailed build instructions are available in each repository’s README.
Style Guide - Writing Conventions
If you wish to contribute to any lecture series, please follow these guidelines to maintain consistency.
Mathematical Notation
Matrices always use square brackets. Use \begin{bmatrix} ... \end{bmatrix}
Sequences use curly brackets, such as \{ x_t \}_{t=0}^{\infty}
Use standard LaTeX math environments. Dollar signs ($...$ for inline, $$...$$ for display) work in MyST Markdown.
“Independent and identically distributed” is abbreviated to “IID”.
Emphasis and Definitions
Use bold for definitions and italic for emphasis. For example,
- A closed set is a set whose complement is open.
- All consumers have identical endowments.
Titles and Headings
- Capitalize all words in titles
Example: “How it Works: Data, Variables and Names”
Adding References
Citations use the {cite} role in MyST Markdown:
{cite}`StokeyLucas1989`, chapter 2
To add a new reference, add a BibTeX entry to the references.bib file in the lecture repository.