Google Colab
Google Colab (short for Google Colaboratory) is a cloud-based Jupyter Notebook environment from Google that lets you write, run, and share Python code in a web browser without any local installation. It is widely used for machine learning, data science, and education.
Installation and Setup
Google Colab requires no local installation. To get started, visit colab.research.google.com and sign in with a Google account. Notebooks are stored in and shared through Google Drive.
Key Features
- Runs Python notebooks in the browser with no local setup required
- Provides access to CPUs, with limited free GPU and TPU usage subject to availability
- Comes with popular Python libraries pre-installed, including NumPy, PyTorch, and TensorFlow (CPU/GPU runtimes only)
- Shares notebooks like Google Docs or Sheets, letting collaborators view or edit them
- Integrates with Google Drive for notebook storage and sharing
- Imports notebooks from GitHub, Google Drive, or local upload
- Offers paid plans including Colab Pro, Colab Pro+, and Pay As You Go for faster hardware, more memory, and longer runtimes
Usage
- Go to colab.research.google.com or create a new notebook from Google Drive.
- Add a code cell and run it with Shift+Enter or the play button.
- Install additional packages with
!pip install <package>in a code cell. - Change the hardware accelerator to GPU or TPU from Runtime > Change runtime type.
- Share notebooks with collaborators using the Share button, just as you would with a Google Doc.
Related Resources
Tutorial
Jupyter Notebook: An Introduction
In this step-by-step Python tutorial, you learn how to get started with The Jupyter Notebook, an open source web application that you can use to create and share documents that contain live code, equations, visualizations, and text.
For additional information on related topics, take a look at the following resources:
- NumPy Tutorial: Your First Steps Into Data Science in Python (Tutorial)
- PyTorch vs TensorFlow for Your Python Deep Learning Project (Tutorial)
- Python Plotting With Matplotlib (Guide) (Tutorial)
- Setting Up Python for Machine Learning on Windows (Tutorial)
- Using Jupyter Notebooks (Course)
- Python Deep Learning: PyTorch vs Tensorflow (Course)
- Python Plotting With Matplotlib (Course)
By Leodanis Pozo Ramos • Updated March 11, 2026