laffer_adaptive: `import matplotlib` is unused (missed by #798)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- matplotlib, numpy, python
- Domain
- documentation
Research direction
Open lectures/laffer_adaptive.md and inspect the import block around lines 170–175. Remove the unused import matplotlib on line 174, then confirm the remaining matplotlib.pyplot and matplotlib.ticker imports are still used and that the source lecture no longer contains the unused import.
Written by the indexing model from the issue text.
Description
lectures/laffer_adaptive.md imports matplotlib but never uses it. The only matplotlib-prefixed reference in the lecture is the matplotlib.pyplot and matplotlib.ticker imports themselves — nothing calls matplotlib.<anything>.
The import block currently reads:
| line | import | used? |
|---|---|---|
| 170 | from collections import namedtuple |
yes |
| 171 | import numpy as np |
yes |
| 172 | import matplotlib.pyplot as plt |
yes |
| 173 | from matplotlib.ticker import MaxNLocator |
yes |
| 174 | import matplotlib |
no |
| 175 | from scipy.optimize import root, fsolve |
yes |
This was missed by #798, which removed the unused get_cmap and to_rgba imports from this same block and left import matplotlib one line below them. Dropping line 174 finishes that cleanup.
How it surfaced
Copilot review flagged it on the Chinese edition's sync PR for #798 — QuantEcon/lecture-intro.zh-cn#268. It is not being fixed there: the line is inherited from this repo, so patching it in a translation edition would create drift from source on non-localisation grounds and would likely be reintroduced by the next resync. Fixing it here lets it flow down through the normal sync instead.
(For the record, the Chinese edition separately carries import matplotlib as mpl, which is used — it registers the CJK font. That one is a legitimate localisation addition and is unaffected.)
Happy to send a one-line PR if useful.
🤖 Generated with Claude Code
- Dominant language
- Jupyter Notebook
- Stars
- 71
- Forks
- 37
- Avg merge
- 12h 6m
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from QuantEcon/lecture-python-intro
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
QuantEcon/lecture-python-intro#871 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantEcon/lecture-python-intro#864 ·
Maintainers usually reply within 1 day
-
lake_model_intro, time_series_with_matrices, long_run_growth: four small fixesPossibly taken @nishantmishraa claimed this 30 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
QuantEcon/lecture-python-intro#862 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
QuantEcon/lecture-python-intro#851 ·
Maintainers usually reply within 1 day
-
inequality's data.ipynb raises under the pinned pandas 3, and nothing runs it to noticePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
QuantEcon/lecture-python-intro#835 ·
Maintainers usually reply within 1 day
All issues in QuantEcon/lecture-python-intro
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
facebookresearch/atlas-lean#20426 ·
Maintainers usually reply within 1 day
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day