GitHub to Colab

For repository notebooks, replace github.com with githubtocolab.com. For Gists, replace the github.com part of gist.github.com, producing gist.githubtocolab.com.

Read the blog post for the story and usage details.

Examples

Start with a real GitHub or Gist notebook URL, change the domain, and the shortcut redirects to Colab.

GitHub repository notebook

Original GitHub URL
https://github.com/jax-ml/jax/blob/main/docs/notebooks/Common_Gotchas_in_JAX.ipynb
↓ replace github.com with githubtocolab.com
Shortcut
https://githubtocolab.com/jax-ml/jax/blob/main/docs/notebooks/Common_Gotchas_in_JAX.ipynb
↓ redirects to
Colab
https://colab.research.google.com/github/jax-ml/jax/blob/main/docs/notebooks/Common_Gotchas_in_JAX.ipynb

GitHub Gist notebook

Original Gist URL
https://gist.github.com/rasbt/d343874ab1a3e8512a24ab7a79c91b97
↓ replace github.com with githubtocolab.com
Shortcut
https://gist.githubtocolab.com/rasbt/d343874ab1a3e8512a24ab7a79c91b97
↓ redirects to
Colab
https://colab.research.google.com/gist/rasbt/d343874ab1a3e8512a24ab7a79c91b97/reasoning-inference-scaling-gh-models-examples.ipynb

If a Gist contains multiple notebooks, use the explicit notebook path instead of the bare Gist URL.

Converter

Results will appear here.

Bookmarklet

Drag this link to your bookmarks bar, then click it from a GitHub notebook page:

Open in Colab