Clean up pre-existing deprecation warnings (matplotlib scatter marker, plotly kaleido engine)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- matplotlib, plotly, python
- Domain
- documentation
Research direction
Review the listed lines in lectures/chang_credible.md, BCG_complete_mkts.md, BCG_incomplete_mkts.md, and knowing_forecasts_of_others.md. Start by comparing the affected calls with the warning text and the existing warning-free to_image example. Done means the keyword and engine deprecation warnings no longer appear during full re-execution validation.
Written by the indexing model from the issue text.
Description
These two deprecation warnings surfaced during the full re-execution validation for the anaconda=2026.06 upgrade (#346). They are pre-existing (not caused by that upgrade) and non-blocking — the affected lectures still build — but worth cleaning up, especially the matplotlib one, which becomes a hard error in a future release.
1. Matplotlib — positional marker in scatter() (will error in matplotlib 3.12)
lectures/chang_credible.md:849
ax.scatter(R[0], R[1], 150, 'black', 'o', zorder=1)
MatplotlibDeprecationWarning: Passing the marker parameter of scatter() positionally is deprecated since Matplotlib 3.10; the parameter will become keyword-only in 3.12.
Suggested fix — pass the size/color/marker as keywords:
ax.scatter(R[0], R[1], s=150, c='black', marker='o', zorder=1)
2. plotly to_image(..., engine="kaleido") deprecation
DeprecationWarning: Support for the 'engine' argument is deprecated and will be removed after September 2025. Kaleido will be the only supported engine at that time.
Kaleido is already the default/only engine going forward, so the engine="kaleido" argument can simply be dropped (several calls in knowing_forecasts_of_others.md already omit it, e.g. fig2.to_image(format="png")).
Affected lines:
lectures/BCG_complete_mkts.md:1197lectures/BCG_incomplete_mkts.md:1273,:1637,:1688,:1749,:1779lectures/knowing_forecasts_of_others.md:1024
# from
Image(fig.to_image(format="png", engine="kaleido"))
# to
Image(fig.to_image(format="png"))
Tasks
-
chang_credible: passs/c/markeras keywords inax.scatter(...) -
BCG_complete_mkts,BCG_incomplete_mkts,knowing_forecasts_of_others: dropengine="kaleido"fromto_image(...)calls
Found during validation in #346.
- Dominant language
- TeX
- Stars
- 37
- Forks
- 26
- Avg merge
- 13d 22h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
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-advanced.myst
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
broken-links bug documentation
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Link Checker Report Openautomated issue linkchecker report
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Link Checker Report Openautomated issue linkchecker report
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Link Checker Report Openautomated issue linkchecker report
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
All issues in QuantEcon/lecture-python-advanced.myst
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100