Google Colab for Python code

Colaboratory, or "Colab" for short, allows you to write and execute Python in your browser, with

  • Zero configuration required
  • Free access to GPUs
  • Easy sharing

Whether you're a student, a data scientist or an AI researcher, Colab can make your work easier. Watch Introduction to Colab to learn more, or just get started below!

Getting started with Colab at Dartmouth:

  1. Navigate to https://drive.google.com/ and log in to Google Drive with your Dartmouth credentials
  2. Open a new tab and navigate to https://colab.research.google.com/

Some Dartmouth credentials, including Geisel Medical School accounts, are restricted from using Colab. In this case, you may choose accessed from your personal Gmail account. 

Official Documentation:

Opening a link to a Colab Notebook (.ipynb file) in Google Drive

If you are sent a link to a Colab (or Jupyter) Notebook file from/hosed in a Google Drive, you can choose to:

  1. Click on the link
  2. When presented with the "preview", you may either download the file to your computer (no need to be signed in) or open in Colab (must sign in)
    1. To download the file to your computer, click on the download icon (down-arrow-into-a-tray, red circle in screenshot below, or
    2. Sign in (green circle below) with your Dartmouth credentials or personal Gmail account (Geisel affiliates do not have access to Colab via their institutional account) if prompted: 

       
    3. When signed in, choose "Open with Google Colaboratory" at the top of the screen. If the option is not displayed, you need to connect Colab to your account by:
      1. drop down the arrow at the top of the screen
      2. select "Connect more apps"
      3. search for "colab" using the magnifying glass icon in the newly opened window
      4. select Google Colaboratory (orange logo)
    4. This will open the Colab/Jupyter Notebook in Google Colab. 
    5. Make sure to save a copy of the notebook to your GDrive (File->Save a copy in Drive), as the owner of the original notebook may not allow you to save changes.