From cf4c2c165879b771e13f0bd81713b3bcaa4adaa8 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 7 Sep 2026 10:19:38 +1000 Subject: [PATCH] chore: bump the pinned theme to v2.5.0 and restore the short_path graph cell The site pinned quantecon-theme.mystmd v2.3.0 and served 60 KaTeX font 404s (theme#138, fixed in v2.3.1 and completed in v2.4.0). v2.5.0 also brings the Sphinx-matching typography, the Colab-only launcher and the toolbar accessibility fixes. See QuantEcon/lecture-wasm#71. The %%file graph.txt cell moves back inside the exercise: the nested code-cell kernel defect it was working around (theme#117) shipped in v2.3.1, and the workaround's own comment said to revert it then. Co-Authored-By: Claude Fable 5.1 --- lectures/myst.yml | 2 +- lectures/short_path.md | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/lectures/myst.yml b/lectures/myst.yml index ed6f570..9f2d5f3 100644 --- a/lectures/myst.yml +++ b/lectures/myst.yml @@ -119,4 +119,4 @@ project: site: # Pinned theme release (see https://github.com/QuantEcon/quantecon-theme.mystmd/releases); # bump the vX.Y.Z in this URL to take a new theme version. - template: https://github.com/QuantEcon/quantecon-theme.mystmd/releases/download/v2.3.0/quantecon-theme.zip + template: https://github.com/QuantEcon/quantecon-theme.mystmd/releases/download/v2.5.0/quantecon-theme.zip diff --git a/lectures/short_path.md b/lectures/short_path.md index 40a8c27..ba87348 100644 --- a/lectures/short_path.md +++ b/lectures/short_path.md @@ -270,16 +270,6 @@ You will be dealing with floating point numbers now, rather than integers, so consider replacing `np.equal()` with `np.allclose()`. ``` - -```{exercise-end} -``` - -% The graph data cell sits OUTSIDE the exercise deliberately. A code cell nested -% in any directive is never registered with the kernel by @myst-theme/jupyter, so -% inside the exercise it renders a run button that does nothing and the solution -% then fails with FileNotFoundError. See QuantEcon/lecture-wasm#64 and -% QuantEcon/quantecon-theme.mystmd#117. Move it back only once that is fixed. - ```{code-cell} ipython3 %%file graph.txt node0, node1 0.04, node8 11.11, node14 72.21 @@ -384,6 +374,9 @@ node98, node99 0.33 node99, ``` +```{exercise-end} +``` + ```{solution} short_path_ex1 :class: dropdown ```