Fix broken raw GitHub URLs for CSV data files#491
Conversation
The repo restructure (drop .myst suffix, master→main) broke two github.com/ghraw URLs used in code cells: - pandas.md: test_pwt.csv → 404 (causes cache build failure) - python_advanced_features.md: test_table.csv → 404 Updated both from the old path: master/source/_static/lecture_specific/... to the current path: main/lectures/_static/lecture_specific/...
There was a problem hiding this comment.
Pull request overview
This PR fixes broken github.com/ghraw links in QuantEcon’s lecture content so that examples referencing CSV data files resolve correctly after the repository restructure (master→main, source/_static→lectures/_static).
Changes:
- Update the
test_table.csvraw GitHub URL inlectures/python_advanced_features.mdto the current branch/path. - Update the
test_pwt.csvraw GitHub URL inlectures/pandas.mdto the current branch/path (addresses the reported cache build failure).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
lectures/python_advanced_features.md |
Fixes the raw GitHub download URL for test_table.csv used in an exercise. |
lectures/pandas.md |
Fixes the raw GitHub URL used by pd.read_csv(...) to fetch test_pwt.csv. |
|
\translate-resync |
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
|
\translate-resync |
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
|
\translate-resync |
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
|
\translate-resync |
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
|
\translate-sync fa |
|
\translate-resync |
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
Problem
The cache build is failing because
pandas.mdtries to fetchtest_pwt.csvfrom a URL that no longer exists:This returns 404 because the repo was restructured (the
.mystsuffix was dropped andmasterbecamemain,source/_staticbecamelectures/_static).Failed run: https://github.com/QuantEcon/lecture-python-programming/actions/runs/23420771220/job/68125163471
Fix
Updated two broken
github.com/ghrawURLs from the old path to the current one:lectures/pandas.mdtest_pwt.csvURL — this causes the cache build failurelectures/python_advanced_features.mdtest_table.csvURL — also broken (404)Old pattern:
master/source/_static/lecture_specific/...New pattern:
main/lectures/_static/lecture_specific/...Both updated URLs have been verified to return HTTP 200.