Skip to content

Pin notebooks to published dandiset versions - #216

Open
bendichter wants to merge 1 commit into
masterfrom
pin-dandiset-versions
Open

bendichter wants to merge 1 commit into
masterfrom
pin-dandiset-versions

Conversation

@bendichter

Copy link
Copy Markdown
Member

Follow-up to #214. Notebooks that read a dandiset's draft broke when the draft was re-uploaded (001636, 001754). This pins every other notebook that can be pinned to its dandiset's most recent published version, so neither draft edits nor a new release change the data under it.

Notebooks with a dandiset_id/DANDISET_ID variable get a matching dandiset_version/DANDISET_VERSION; calls with a literal ID get a literal version. The shared stream_nwbfile helpers (000458, 000559, 000971) take the version as an argument, defaulting to "draft" for outside callers. The 000055, 000402 and 001075 helpers name the version directly.

Dandiset Version Draft vs. published
000039 0.230223.1216 identical
000055 0.220127.0436 identical
000129 0.241017.1444 identical (dandi download URL)
000363 0.231012.2129 identical
000402 0.230307.2132 identical
000409 0.260309.1324 identical
000458 0.230317.0039 identical
000559 0.260528.0858 identical
000582 0.251111.2151 identical (also tutorials/bcm_2024)
000718 0.260825.1902 identical
000727 0.240106.0043 identical
000728 0.240827.1809 already read this version implicitly
000947 0.240510.2211 identical
000971 0.261013.1707 draft re-uploaded 2026-10-22; notebooks now read the published files
001038 0.241111.1719 identical
001075 0.240930.1859 identical
001084 0.241023.2011 identical
001170 0.260528.1016 identical
001172 0.260129.0829 identical
001550 0.260916.0811 draft re-uploaded 2026-10-27; notebooks now read the published files
001933 0.260825.1457 identical
000005, 000398 0.220126.1853, 0.221208.1803 identical (search tutorials)
000409, 000728 as above Get-to-know-a-Dandiset tutorial

"Identical" means every asset path has the same blob in the draft and the published version, so pinning changes nothing today.

Not pinned:

  • 000108, 001528, 001712: no published version.
  • 001538, 001687: already pinned.
  • 001636, 001754: pinned in Pin the 001636 and 001754 notebooks to published dandiset versions #214.
  • dandi/DANDI User Guide, Part I: lets the reader switch between four dandisets.
  • demos/NWBWidget-demo: the reader picks the dandiset.
  • 000059 in the advanced search tutorials: read through a helper function, and its draft differs heavily from the release.
  • Markdown links to /draft landing pages are left as they are.

Tested: the 000971 and 001550 notebooks (whose data changes) execute end to end on the pinned versions. CI runs the rest of the changed, CI-tested notebooks.

🤖 Generated with Claude Code

Notebooks that read a dandiset's draft (or its latest published version
implicitly) now name a published version, so re-uploads to the draft or
a new release cannot change the data under them. Each pin is the
dandiset's most recent published version. Notebooks with a dandiset ID
variable get a matching dandiset_version/DANDISET_VERSION variable; the
shared stream_nwbfile helpers take the version as an argument.

For 000971 and 001550 the draft files changed after the last release, so
these notebooks now read the published files; the rest read files
identical to their draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions

Copy link
Copy Markdown
Contributor

Index page preview

A preview of the generated index.html has been deployed for this PR:

View preview

Last updated: commit 230e516bbbd885825b63eb3dd17df8b3af0b2a8d

github-actions Bot added a commit that referenced this pull request Nov 12, 2026
github-actions Bot added a commit that referenced this pull request Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Executed notebooks

CI executes the notebooks changed in this PR through a Jupyter kernel and publishes each one, with its outputs, as soon as it finishes. Links appear below as notebooks complete; an hourglass means the notebook is still running.

25 of 26 finished. Commit 230e516. The executed copies live only in the preview and are removed when the PR closes; nothing is committed to the branch.

github-actions Bot added a commit that referenced this pull request Nov 12, 2026
github-actions Bot added a commit that referenced this pull request Nov 12, 2026
github-actions Bot added a commit that referenced this pull request Nov 12, 2026

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