From 50f50564eca317f6860ea5b5303494e48c92cf16 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 20 Jul 2026 09:15:49 +1000 Subject: [PATCH 1/2] FIX: remove unused get_cmap import in laffer_adaptive anaconda 2026.07 ships a matplotlib that has removed the long-deprecated `matplotlib.cm.get_cmap`, so the first code cell of `laffer_adaptive.md` fails at import time with: ImportError: cannot import name 'get_cmap' from 'matplotlib.cm' The symbol is never used anywhere in the lecture, so the import is simply dropped rather than migrated to `matplotlib.colormaps[...]`. Found while validating the anaconda 2026.06 -> 2026.07 bump (#797). See QuantEcon/workspace-lectures#21 for the cross-repo validation status. Co-Authored-By: Claude Opus 4.8 (1M context) --- lectures/laffer_adaptive.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lectures/laffer_adaptive.md b/lectures/laffer_adaptive.md index 69bed3ee..a955e553 100644 --- a/lectures/laffer_adaptive.md +++ b/lectures/laffer_adaptive.md @@ -171,7 +171,6 @@ from collections import namedtuple import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator -from matplotlib.cm import get_cmap from matplotlib.colors import to_rgba import matplotlib from scipy.optimize import root, fsolve From cfe12baca17166dfeca142be6a138f7a6010c0cd Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 20 Jul 2026 09:21:16 +1000 Subject: [PATCH 2/2] FIX: remove unused to_rgba import in laffer_adaptive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `to_rgba` is imported but never referenced anywhere in the lecture — the only occurrence in the file is the import statement itself. Unlike `get_cmap` this one is not yet fatal (matplotlib still ships `to_rgba`), but it is dead either way, so it goes with the same cleanup. Co-Authored-By: Claude Opus 4.8 (1M context) --- lectures/laffer_adaptive.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lectures/laffer_adaptive.md b/lectures/laffer_adaptive.md index a955e553..44b219a3 100644 --- a/lectures/laffer_adaptive.md +++ b/lectures/laffer_adaptive.md @@ -171,7 +171,6 @@ from collections import namedtuple import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator -from matplotlib.colors import to_rgba import matplotlib from scipy.optimize import root, fsolve ```