Skip to content

DOC: Fix trailing-space typo in 4_dataset_coding sample code#1710

Open
romanlutz wants to merge 1 commit intomicrosoft:mainfrom
romanlutz:fix/dataset-coding-notebook-output
Open

DOC: Fix trailing-space typo in 4_dataset_coding sample code#1710
romanlutz wants to merge 1 commit intomicrosoft:mainfrom
romanlutz:fix/dataset-coding-notebook-output

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

What

The SimpleDarkBench example in doc/code/datasets/4_dataset_coding.ipynb passes config=\"default \" (trailing space) to _fetch_from_huggingface. The real DarkBenchDataset loader uses config=\"default\". The trailing space would cause the HuggingFace API to fail to find the config if anyone copy-pasted the example.

Why now

Noticed while auditing notebooks that have execution_count: null (no cell outputs) on the published docs site (follow-up to #1707). This notebook's only cell defines a class without instantiating it, so the missing output is expected — but the typo is real. Re-executed the notebook for hygiene; the .py and .ipynb stay in sync.

The SimpleDarkBench example in doc/code/datasets/4_dataset_coding.ipynb passes `config=\"default \"` (trailing space) to `_fetch_from_huggingface`. The real DarkBenchDataset loader uses `config=\"default\"`. The trailing space would cause the HuggingFace API to fail to find the config if anyone copy-pasted the example.

Re-executed the notebook for hygiene; the only cell defines a class without instantiating it, so there is no visible output to populate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant