Skip to content

Fix the Open in Colab badges in the tutorials - #456

Open
ASKabalan wants to merge 1 commit into
mainfrom
fix/colab-badge-links
Open

ASKabalan wants to merge 1 commit into
mainfrom
fix/colab-badge-links

Conversation

@ASKabalan

Copy link
Copy Markdown
Collaborator

Closes #424.

Colab opens notebooks only from a GitHub repository. Since #350 the docs are deployed from an artifact, so the notebooks copied to _colab_notebooks/ during the build were never pushed to a branch. On each push to main, a new job, push-colab-notebooks, downloads these notebooks and commits them to _colab_notebooks/ on the gh-pages branch. deploy-pages still publishes the site from the artifact.

@claude claude Bot 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@ASKabalan
ASKabalan requested review from mscroggs and a balanced review from Copilot December 3, 2026 13:08

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@ASKabalan

Copy link
Copy Markdown
Collaborator Author

@mscroggs this is pretty much straight forward and can be merged
Can you please approve?

@matt-graham matt-graham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for picking this up @ASKabalan. The approach here overall looks reasonable but I would say ideally we don't use the gh-pages branch for this as I think that might lead to further confusion about how the docs deployed in future as the gh-pages branch is not used as the GitHub Pages source as you note. I would say we should probably just remove the gh-pages branch altogether and just use a separate orphaned branch here - for example colab-notebooks or similar, with notebooks at the root? The Actions here should also use specific commit hashes plus version comments to keep consistent with changes from #450

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.

Google Colab badge links in tutorials do not work

3 participants