numba#
Series: lecture-python-programming
File:
lectures/numba.mdAudit date: 2026-05-28
Categories audited: writing, math, code, figures, references, links, admonitions (JAX out of scope)
Overall score: 7.8 / 10
Priority: LOW
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
7/10 |
Title Case in H3/H4 headings throughout. |
Math |
8/10 |
Clean math; |
Code |
9/10 |
|
JAX |
out of scope |
(Mentions JAX as a future direction.) |
Figures |
8/10 |
Two code-generated plots use |
References |
N/A |
No citations. |
Links |
7/10 |
Uses |
Admonitions |
8/10 |
Three |
Issues#
Critical#
None found.
High severity#
None found.
Medium severity#
[qe-writing-006] — Section headings use Title Case. Examples: line 80
## Compiling Functions, line 87### An Example, line 100#### Base Version, line 132#### Acceleration via Numba, line 183### How and When it Works, line 217## Sharp Bits, line 223### Typing, line 267### Global Variables, line 300## Multithreaded Loops in Numba, line 437## Exercises. Count: 10+ occurrences.[qe-link-002] — One bare URL to a sibling series. Example: line 497
[Introduction to Quantitative Economics with Python](https://intro.quantecon.org/intro.html)— should use{doc}`intro:intro`(or with custom title).[qe-fig-005] — Two code-generated figures (lines 113, 341) lack
name:metadata.
Low severity#
[qe-math-010 (proposed)] —
\mathbb Ewithout braces in display math (lines 700, 739). Renders identically but inconsistent.[qe-admon-001] — Three exercises use bare
{exercise}rather than gated{exercise-start}/{exercise-end}syntax (lines 439, 613, 688). Their bodies contain math and prose only, so this is a borderline preference rather than a hard violation.
Strengths#
Lecture title “Numba” follows qe-writing-006 (single word).
Math conventions clean: no
^T, no bold vectors, no*for multiplication, no\tag, noaligninside$$.Sequences use
\{...\}per qe-math-005 (e.g.,$\{\xi_t\}$line 726).“IID” used correctly per qe-writing-009 (proposed) (line 726).
qe.Timer()consistently used for benchmarking (qe-code-004 exemplary).Greek unicode (α, β, μ, ρ, ν, σ, ξ, η) used in code throughout per qe-code-002.
{image}directive used insideexercise-start/exercise-endfor the Markov chain transition graph per qe-fig-011.
Recommended actions#
Convert H3/H4 headings to sentence case (“An example”, “Base version”, “Acceleration via Numba”, “How and when it works”, “Sharp bits”, “Typing”, “Global variables”, “Multithreaded loops in Numba”).
Replace the bare
intro.quantecon.org/intro.htmlURL on line 497 with{doc}`intro:intro`.Tighten
\mathbb E→\mathbb{E}for consistency.Optionally convert the three bare
{exercise}blocks to gated syntax for uniformity with the rest of the lecture.