Writing Papers with Jupyter Notebooks and Quarto

A very convenient way to write academic papers which include the code for all reported analyses is to use Jupyter notebooks together with Quarto. Quarto is a scientific publishing system that allows you to combine text, code, and results in a single document. Quarto will render Jupyter notebooks to PDF using LaTeX. When you include tables created with MakeTables in your notebook, they will be rendered directly on the screen in the notebook (as HTML via Great Tables) but will be rendered as LaTeX tables in the final PDF document by Quarto. You can include analyses using different packages, in particular pyfixest or statsmodels or even Stata.

An Example Notebook

Here is an example of a Jupyter notebook rendered to a PDF with Quarto. You can download this notebook with quartoExample.ipynb. The BibTeX file with references is references.bib. Just render the notebook with quarto render quartoExample.ipynb to create the PDF document.