Skip to content

french_rev: read the five datasets from data-lectures - #55

Merged
mmcky merged 1 commit into
mainfrom
repoint/french-rev
Aug 6, 2026
Merged

french_rev: read the five datasets from data-lectures#55
mmcky merged 1 commit into
mainfrom
repoint/french-rev

Conversation

@mmcky

@mmcky mmcky commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Repoints french_rev off lecture-python-intro's committed copies and onto QuantEcon/data-lectures, and deletes this repo's unused mirror copies. Part of QuantEcon/workspace-lectures#23 (step 2); data-side record in QuantEcon/data-lectures#49.

The URL form is deliberate

base_url keeps the raw.githubusercontent.com host — only the org, repo and path change:

https://raw.githubusercontent.com/QuantEcon/lecture-python-intro/main/lectures/datasets/
https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/

This is repoint rule 5. This site executes its code cells in the reader's browser, so every pd.read_*(url) is a CORS-checked cross-origin fetch, and the github.com/<org>/<repo>/raw/ form intro uses is a 302 whose response carries an empty access-control-allow-origin — rejected before the redirect is followed. Normalising these URLs to intro's form is exactly the regression QuantEcon/data-lectures#46 records.

Verified on the target host: all five return 200 with access-control-allow-origin: *, serving bytes identical to the copies the lecture read before.

Dataset Status ACAO Bytes
assignat.xlsx 200 * identical
dette.xlsx 200 * identical
fig_3.xlsx 200 * identical
caron.npy 200 * identical
nom_balances.npy 200 * identical

The .npy reads already used requests + BytesIO, so they needed no change beyond base_url.

Deletions

The six files removed from lectures/datasets/ were mirror-orphans — nothing in this repo read them, because french_rev has always fetched intro's copies by URL. data-lectures' audit classifies all six that way.

fig_3.ods is included: it is a format twin of fig_3.xlsx that nothing anywhere references, and data-lectures dropped it for that reason during the restructure. The two remaining files in that directory belong to another lecture and are untouched.

Prose links

The three markdown links under Data Sources pointed into lecture-python-intro. No build checks them, so they would have 404'd silently once intro deletes its copies. Repointed here — two of the references inventoried in QuantEcon/data-lectures#42.

Sequencing

Must land in the same set as QuantEcon/lecture-python-intro#826, per repoint rule 2. While only one side has merged, data-lectures' strict audit fails by design — there is no green state for a partially-repointed dataset. Merging this one first is what happened in set 2 and left the audit red for 47 minutes.

No publish split is needed on this repo: it publishes on push to main, so the site and main never diverge.

🤖 Generated with Claude Code

Repoints french_rev off lecture-python-intro's committed copies and onto
QuantEcon/data-lectures, and deletes this repo's unused mirror copies.

The URL form stays raw.githubusercontent.com, per repoint rule 5 — this site
executes its code cells in the reader's browser, and the github.com/*/raw/
form is a 302 whose response carries an empty access-control-allow-origin.
Only base_url's org, repo and path change. Verified: all five files return
200 with access-control-allow-origin: * on this host, serving bytes
identical to the copies the lecture read before.

The six deleted files under lectures/datasets/ were mirror-orphans — nothing
in this repo read them, since french_rev has always fetched intro's copies
by URL. fig_3.ods is included: it is a format twin of fig_3.xlsx that
nothing anywhere references, and data-lectures dropped it for that reason.
The two remaining files in that directory belong to another lecture.

The three markdown links under "Data Sources" are repointed as well. They
pointed into lecture-python-intro and no build checks them, so they would
have 404'd silently once intro deletes its copies.

Pairs with QuantEcon/lecture-python-intro#826 — both must land together, per
repoint rule 2. Part of QuantEcon/workspace-lectures#23.
Data: QuantEcon/data-lectures#49.
Copilot AI lite review requested due to automatic review settings August 6, 2026 23:21
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for beautiful-dodol-cb9543 failed.

Name Link
🔨 Latest commit 3f3a8da
🔍 Latest deploy log https://app.netlify.com/projects/beautiful-dodol-cb9543/deploys/6a7516e2fc2e1a000848dd3a

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the french_rev lecture to source its spreadsheet and binary datasets from QuantEcon/data-lectures (using the raw.githubusercontent.com URL form to avoid CORS issues in in-browser execution) and repoints the “Data Sources” prose links accordingly.

Changes:

  • Repointed the three “Data Sources” markdown links from lecture-python-intro to data-lectures.
  • Updated the base_url used by the lecture’s code to fetch datasets from QuantEcon/data-lectures/main/lectures/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-55--beautiful-dodol-cb9543.netlify.app (3f3a8da)

✨ Browse the preview at the URL above.

@mmcky
mmcky merged commit eceed27 into main Aug 6, 2026
2 of 6 checks passed
@mmcky
mmcky deleted the repoint/french-rev branch August 6, 2026 23:49
mmcky added a commit to QuantEcon/data-lectures that referenced this pull request Aug 7, 2026
…#49)

Flips assignat.xlsx, dette.xlsx, fig_3.xlsx, caron.npy and nom_balances.npy
from landed to repointed, and fills in their consumers now that both
lectures read them from here. migration.yml is 18 repointed, 0 landed.

Hold this as a draft until QuantEcon/lecture-python-intro#826 and
QuantEcon/lecture-wasm#55 have both merged. `build_audit.py` scans each
consuming repo's origin/main, so while those PRs are open a strict run
reports five migration_inconsistencies and exits 1 — the deliberate
no-green-state window for a partially-repointed dataset (repoint rule 2).
It goes green once both land; nothing else is required here.

Also drops nine stale mirror-orphan annotations for lecture-wasm files that
no longer exist. Six are deleted by lecture-wasm#55 in this same set; the
other three (chapter_3.xlsx, longprices.xls, mpd2020.xlsx) were deleted
during sets 1 and 2 and their annotations were left behind. All nine
confirmed absent from that repo's working tree.

check_consumed_files.py now covers 18 of 18 files, 0 errors — the five new
consumer entries put these datasets under the required byte check for the
first time.

Part of QuantEcon/workspace-lectures#23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants