Skip to content

Add notebook source links and Run in Colab buttons#152

Merged
nikosbosse merged 3 commits intomainfrom
feat/notebook-source-links-colab
Feb 18, 2026
Merged

Add notebook source links and Run in Colab buttons#152
nikosbosse merged 3 commits intomainfrom
feat/notebook-source-links-colab

Conversation

@nikosbosse
Copy link
Contributor

@nikosbosse nikosbosse commented Feb 16, 2026

Summary

  • Adds "View source" (GitHub) and "Run in Colab" buttons to every case study page
  • Buttons appear top-right above the notebook content, styled to match the existing docs site
  • Colab opens the notebook directly from the public GitHub repo — no cost to us, runs on the user's free Colab tier
image

We might want to add pip install everyrow to the actual notebook. What do others think?

Closes FST-2351

Test plan

  • Visit any case study page (e.g. /docs/case-studies/match-software-vendors-to-requirements)
  • Verify "View source" opens the correct .ipynb on GitHub
  • Verify "Run in Colab" opens the notebook in Google Colab and cells can execute
  • Check buttons render correctly on mobile

🤖 Generated with Claude Code

Every case study page now shows two action buttons at the top-right:
- "View source" linking to the notebook on GitHub
- "Run in Colab" linking to Google Colab for immediate execution

Closes FST-2351

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@notion-workspace
Copy link

Copy link
Contributor

@hnykda hnykda left a comment

Choose a reason for hiding this comment

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

Can we merge this to get part of it in, but have a follow up that will make sure the colab thing works including the data? I.e. shouldn't paths in the notebook be hardcoded to the github LFS link of the file instead of local file?

nikosbosse and others added 2 commits February 17, 2026 22:21
Instead of rejecting colab.research.google.com links as unrecognized,
extract the repo-relative path and verify the notebook exists locally —
same approach used for GitHub blob and LFS media URLs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nikosbosse
Copy link
Contributor Author

@hnykda Should all work now (I tested it locally by copying over the cells from the notebook to the colab (as the colab got loaded from the main github)

@hnykda
Copy link
Contributor

hnykda commented Feb 18, 2026

Awesome, thanks! Can we merge this then?

@nikosbosse nikosbosse merged commit c6878a3 into main Feb 18, 2026
3 checks passed
@nikosbosse nikosbosse deleted the feat/notebook-source-links-colab branch February 18, 2026 10:05
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