Skip to content

Sync tutorial notebooks with Colab and link example code in docs - #1259

Open
jhnwu3 wants to merge 1 commit into
masterfrom
docs/tutorials-sync
Open

jhnwu3 wants to merge 1 commit into
masterfrom
docs/tutorials-sync

Conversation

@jhnwu3

@jhnwu3 jhnwu3 commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Re-lands #1256 on master. #1256 was merged into medcode/icd-mappings two minutes after that branch had already been squash-merged as #1257, so its changes never reached master. This is the same commit cherry-picked onto master, with identical content and no conflicts.

Changes

  • examples/tutorials/tutorial_pyhealth_medcode.ipynb: now matches the Colab version. Its ICD9CM → ICD10CM cell uses the icd-mappings backend from medcode: ICD-9 <-> ICD-10 translation and grouper vocabularies via icd-mappings #1257.
  • tutorial_pyhealth_data.ipynb, tutorial_pyhealth_trainer.ipynb: synced with Colab, replacing the removed dataset.patients with unique_patient_ids.
  • docs/tutorials.rst:
    • [Source] links to each tutorial notebook.
    • All 74 example filenames link to the real files, fixing wrong or renamed paths.
    • The readmission list-table is fixed, blob/main becomes blob/master, and the file has no docutils warnings.

Testing

🤖 Generated with Claude Code

- Sync tutorial_pyhealth_{data,trainer,medcode}.ipynb with the Colab
  versions linked from docs/tutorials.rst. The repo copies of data and
  trainer still used dataset.patients, which BaseDataset no longer has
  (it is unique_patient_ids). The medcode notebook's ICD9CM->ICD10CM
  cell relies on the icd-mappings backend added in the parent commits.
- docs/tutorials.rst: link each Colab tutorial to its source notebook,
  turn every example filename into a link to the real file (fixing
  wrong or renamed paths such as the EEG SparcNet and eICU scripts),
  fix the broken readmission list-table, and blob/main -> blob/master.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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