What Is Google Colab? Run Python Without Installing Anything
Google Colab is a free browser notebook for running Python. Learn how to start, what it is good for and where its limits are.
Short answer: Google Colab (short for Colaboratory) is a free, browser-based notebook where you can write and run Python without installing anything. You sign in with a Google account, open a notebook and run code cell by cell. It is popular for learning Python, data work and small AI experiments.
What is Google Colab, exactly?
Colab is a hosted version of the Jupyter notebook idea. A notebook is a document made of cells: some hold code, some hold text. When you run a code cell, the code runs on a computer in the cloud, not on yours, and the output appears right under the cell.
How do you start using Google Colab?
Open the Colab website and sign in with a Google account.
Choose to create a new notebook.
Click a code cell, type some Python and press the run button (or Shift + Enter).
Add more cells with the plus buttons. Add text cells to take notes between code.
Try this in your first cell:
import sys
import platform
print("Python", sys.version.split()[0])
print("System:", platform.system())
total = sum(n * n for n in range(1, 11))
print("Sum of squares 1..10:", total)It prints the Python version Colab uses, the system name and the sum of the squares from 1 to 10 (385). The menus may look different over time, but the idea stays the same.
What can you do with Colab?
Learn Python with no setup, which suits a shared or restricted computer.
Work with data using popular libraries, many of which are preinstalled. Install others with a line such as
!pip install package-name.Try machine learning. Colab offers optional hardware accelerators such as GPUs through the runtime settings. Availability and limits change, so check the Colab help pages.
Share a notebook by link, much like a shared document.
What are the limits of Colab?
Limit | What it means |
|---|---|
Temporary sessions | The cloud machine is not yours. Sessions end after you leave it idle or after a time limit, and installed packages and files in the session are lost. |
Saving files | Save the notebook itself to Google Drive. Mount Drive to keep data files (code below). |
Shared resources | Memory, disk and accelerator access are limited and vary, so very large projects need other hardware. |
Needs internet | No connection, no Colab. |
from google.colab import drive
drive.mount('/content/drive')Colab asks for permission before your Drive is connected. Only allow access to an account you trust, and never paste secret keys into a notebook you share.
Colab or local Python?
Colab is excellent for starting out. Later you will likely want Python installed on your own computer for larger projects, with files that always stay in place. Our guide on how long it takes to learn Python and the overview What is Python help you plan the next step.
Common mistakes
Running cells out of order. A variable defined in a later cell does not exist yet. Use Runtime, then Restart and run all, to test the notebook from the top.
Losing work by not saving files to Drive.
Sharing a notebook that contains passwords or API keys.
Key Takeaway
Colab lets you run Python in a browser with zero setup, which makes it a friendly place to learn. Just remember that sessions are temporary, so save your notebook and data.
Ready to start? Learn Python step by step and build your first AI app, starting with a notebook or your own computer. Begin with the free course Python for AI: From Zero to Your First AI App.
Related articles
More in AI Tools
What Is Hugging Face?
Hugging Face is a hub of shared AI models, datasets and demo apps, with open-source libraries to run them. Here is what it offers and how to start.
4 min readNov 13, 2026What Is Kaggle and How Should Beginners Start?
Kaggle is a free platform for learning data science with datasets, notebooks and competitions. Here is a beginner path and a first code snippet.
3 min readNov 11, 2026What Is n8n? AI Automation Workflows With Little Code
n8n is a visual workflow automation tool. Learn what triggers and nodes are, how an AI workflow works, when n8n beats writing code, and what to check before you use it.
4 min readNov 3, 2026ChatGPT vs Gemini vs Claude: Which Should You Use for What?
A fair, non-promotional guide to choosing between ChatGPT, Gemini and Claude: what they share, what differs, and a simple test you can run with your own prompts.
4 min readOct 31, 2026Writing Your CV and Cover Letter With ChatGPT
How to use ChatGPT to improve your CV and draft a cover letter without inventing facts: working prompts, a safety checklist and common mistakes.
4 min readNov 16, 2026SQL vs Python for Data Analysis
SQL and Python do different jobs in data analysis. See what each is best at, a side-by-side example, and which one to learn first.
4 min readNov 15, 2026
Comments
Sign in to join the discussion.

