short_path: the second and fourth figures show the wrong graphs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
Research direction
Read lectures/_static/lecture_specific/short_path/figures.ipynb alongside the figure references in lectures/short_path.md. Check how the notebook names the red A, C, F, G path and the J(v) graph, then regenerate the affected figures. Done when the second and fourth figures match the surrounding text and both sites receive the corrected figures.
Written by the indexing model from the issue text.
Description
What readers see. On https://intro.quantecon.org/short_path.html, two of the four figures don't match the text around them:
- after "A, C, F, G at cost 8", the page shows a graph with its edges shaded in blues, where the text expects the path A, C, F, G highlighted in red;
- after "Suppose that we know $J(v)$ for each node $v$, as shown below", the page shows that red A, C, F, G path, where the text expects the graph labelled with $J(v)$ at each node (8 at A, 10 at B, 3 at C, 5 at D, 4 at E, 1 at F, 0 at G).
The first and third figures (the plain graph, and the path A, D, F, G in blue) are right.
Why. lectures/_static/lecture_specific/short_path/figures.ipynb writes the red A, C, F, G path to graph2.png, the blues-shaded graph to graph4.png and the $J(v)$ figure to graph5.png. lectures/short_path.md uses the earlier numbering, which QuantEcon/lecture-python.myst's copy of these figures still follows: the red path as graph4.png (its second {figure}) and the $J(v)$ figure as graph2.png (its fourth). The figures were regenerated with the notebook's numbering, so the lecture's second and fourth references now name the wrong files, and graph5.png was never committed.
Fix (either way, one pull request). Change the notebook to write the red path to graph4.png and the $J(v)$ figure to graph2.png, regenerate, and commit those two files, leaving the lecture's text as it is. Or point the lecture's second figure at graph2.png and its fourth at a committed graph5.png. The first keeps the file names that QuantEcon/lecture-python.myst and QuantEcon/lecture-dp use.
Found by a screenshot comparison of the Dynamic Programming lectures before their move to QuantEcon/lectures (QuantEcon/project-monorepo#85). Those lectures republish this lecture and currently serve the right figures, from older copies; the monorepo's pool holds this repository's files, so the fix here reaches both sites.
Claude Code (on behalf of mmcky)
- Dominant language
- Jupyter Notebook
- Stars
- 71
- Forks
- 37
- Avg merge
- 13h 9m
- Merged PRs (30d)
- 8
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 29 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
-
Add: KCM True crimeOpenapproved check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
[辞書] VIVANTOpen要トリアージ 辞書
Difficulty 1/5 Under an hour Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openzim/zim-requests#2014 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
1c7/chinese-independent-developer#2151 ·
Maintainers usually reply within 1 day
-
country:US rating:5 request-theme type:TV SHOW
Difficulty 1/5 Under an hour Newbie friendliness 75/100
LizardByte/ThemerrDB#10499 · 1 comment ·