short_path: the second and fourth figures show the wrong graphs
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 86/100
Direção de pesquisa
Leia lectures/_static/lecture_specific/short_path/figures.ipynb junto com as referências às figuras em lectures/short_path.md. Confira como o notebook nomeia o caminho vermelho A, C, F, G e o grafo J(v), depois gere novamente as figuras afetadas. O trabalho estará concluído quando a segunda e a quarta figuras corresponderem ao texto ao redor e os dois locais receberem as figuras corrigidas.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 71
- Forks
- 37
- Merge médio
- 13h 9min
- PRs com merge (30d)
- 8
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de QuantEcon/lecture-python-intro
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
QuantEcon/lecture-python-intro#871 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
QuantEcon/lecture-python-intro#864 ·
Mantenedores costumam responder em até 1 dia
-
lake_model_intro, time_series_with_matrices, long_run_growth: four small fixesTalvez já em andamento @nishantmishraa assumiu há 29 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
QuantEcon/lecture-python-intro#862 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
QuantEcon/lecture-python-intro#851 ·
Mantenedores costumam responder em até 1 dia
-
inequality's data.ipynb raises under the pinned pandas 3, and nothing runs it to noticeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
QuantEcon/lecture-python-intro#835 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de QuantEcon/lecture-python-intro
Issues semelhantes
-
[辞書] VIVANTAberta要トリアージ 辞書
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
openzim/zim-requests#2014 ·
-
添加 Ulanzi-YuiWeather(程序员版面)Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
1c7/chinese-independent-developer#2151 ·
Mantenedores costumam responder em até 1 dia
-
[TV SHOW]: Clipped (2015)Abertacountry:US rating:5 request-theme type:TV SHOW
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
LizardByte/ThemerrDB#10499 · 1 comentário ·
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 90/100