This is a simple chrome extension that, when clicked when viewing a Jupyter notebook on github, will open that notebook in Google Colab.
The extension simply provides a URL redirect: it reads the current URL and opens a new tab at http://colab.research.google.com/github/ with the user, repository, and notebook path.
The latest release of the extension can be installed from the Chrome Web Store.
To install the extension directly from source:
- Clone this repository to your local disk.
- Open the Chrome browser, and navigate to chrome://extensions.
- Ensure that developer mode is enabled (see the switch in the upper-right).
- Click "Load Unpacked" and choose the location of the
open_in_colab
repository. You should see a little colab icon appear in your Chrome extensions icons in your browser bar. - Navigate to a notebook on github (e.g. https://github.com/googlecolab/colabtools/blob/main/notebooks/colab-github-demo.ipynb), and click the extension icon to open the notebook in Colab.