short_path: the second and fourth figures show the wrong graphs
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 86/100
Piste de recherche
Lisez lectures/_static/lecture_specific/short_path/figures.ipynb en parallèle des références aux figures dans lectures/short_path.md. Vérifiez comment le notebook nomme le chemin rouge A, C, F, G et le graphe J(v), puis régénérez les figures concernées. Le travail est terminé lorsque les deuxième et quatrième figures correspondent au texte qui les entoure et que les deux emplacements contiennent les figures corrigées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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)
- Langage dominant
- Jupyter Notebook
- Étoiles
- 71
- Forks
- 37
- Merge moyen
- 13 h 9 min
- PR mergées (30 j)
- 8
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de QuantEcon/lecture-python-intro
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
QuantEcon/lecture-python-intro#871 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
QuantEcon/lecture-python-intro#864 ·
Les mainteneurs répondent en général sous 1 jour
-
lake_model_intro, time_series_with_matrices, long_run_growth: four small fixesPeut-être pris @nishantmishraa l’a pris il y a 29 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
QuantEcon/lecture-python-intro#862 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
QuantEcon/lecture-python-intro#851 ·
Les mainteneurs répondent en général sous 1 jour
-
inequality's data.ipynb raises under the pinned pandas 3, and nothing runs it to noticePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
QuantEcon/lecture-python-intro#835 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de QuantEcon/lecture-python-intro
Issues similaires
-
[辞書] VIVANTOuverte要トリアージ 辞書
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
openzim/zim-requests#2014 ·
-
添加 Ulanzi-YuiWeather(程序员版面)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
1c7/chinese-independent-developer#2151 ·
Les mainteneurs répondent en général sous 1 jour
-
[TV SHOW]: Clipped (2015)Ouvertecountry:US rating:5 request-theme type:TV SHOW
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
LizardByte/ThemerrDB#10499 · 1 commentaire ·
-
Difficulté 1/5 1-3 heures Accessibilité débutants 90/100