Back to setup choices

Lesson 3 of 9 | 10 minutes

Google Colab: No Installation

Create and run a cloud notebook using a Google account.

Open Google Colab

After this lesson, you can

  • Create a Colab notebook.
  • Run and add code cells.
  • Understand what a temporary cloud runtime means.

1. Create a notebook

  1. 1Open Google Colab.
  2. 2Sign in to Google if needed.
  3. 3Select New Notebook.
  4. 4Find the first code cell.
  5. 5Type print("Hello, econometrics!").
  6. 6Select the Run button.
  7. 7Add another cell and test pandas.

2. Advantages

  • No installation.
  • Works on Chromebooks.
  • Saves notebooks to Google Drive.
  • Easy to share.

3. Limitations

  • Requires internet.
  • Sessions can reset.
  • Uploaded files can disappear when a runtime resets.
  • Package versions can change.

Live Python

A Colab-ready DataFrame

A Colab-ready DataFrame

Stdout

Run Python to see results here.

Status / stderr

Ready to run Python in your browser.

Line-by-line guide

  1. Line 1Load a Python library needed for data work or regression.
  2. Line 3Create or update a Python object used in the analysis.
  3. Line 4Run this Python instruction as part of the lesson workflow.
  4. Line 5Run this Python instruction as part of the lesson workflow.
  5. Line 6Run this Python instruction as part of the lesson workflow.
  6. Line 8Display a result so students can inspect the output.

Expected output

income consumption 0 40 35 1 50 42 2 60 49

Your setup progress

Five readiness checkpoints

0% complete