From 90f2a10743142ef529387dab551207f1ec4eab41 Mon Sep 17 00:00:00 2001 From: John Stachurski Date: Mon, 22 Jun 2026 11:12:02 +1000 Subject: [PATCH] Fix ar1_turningpts build: drop figsize from az.plot_trace arviz 1.x dropped the figsize kwarg on plot_trace, which raises ValueError and fails notebook execution once the build cache is invalidated. Remove figsize from the az.plot_trace call (arviz uses its default size). Verified against arviz 1.2.0 that plot_trace(idata) and trace.posterior.rho access both still work. Closes #929 Co-Authored-By: Claude Opus 4.8 (1M context) --- lectures/ar1_turningpts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/ar1_turningpts.md b/lectures/ar1_turningpts.md index 1dfb0038b..2a9ee9bae 100644 --- a/lectures/ar1_turningpts.md +++ b/lectures/ar1_turningpts.md @@ -328,7 +328,7 @@ def draw_from_posterior(sample): # check condition with AR1_model: - az.plot_trace(trace, figsize=(17, 6)) + az.plot_trace(trace) rhos = trace.posterior.rho.values.flatten() sigmas = trace.posterior.sigma.values.flatten()