Login

Sign Up

A Beginner’s Guide to Google Colab Magic! ✨
Priyanshu Sharma

Posted on Jun 15, 2025 | Miscellaneous

A Beginner’s Guide to Google Colab Magic! ✨

Hey there, you curious human! 👋
So you’ve heard the words “Google Colab” floating around in conversations, YouTube videos, or techy WhatsApp groups and thought:
“Is this a new coffee flavor or something?” ☕🤔

Nope! It’s even cooler. 😎
It’s a magical notebook where you can write Python code, run it in the cloud, and look like a hacker — all without installing anything on your computer. 💻✨

Let’s break it down — slow, simple, and super fun.


🧠 What is Google Colab?

Imagine this:

  • You want to learn Python 🐍
  • You don’t want to install anything 😩
  • You just want to open your browser and start typing cool code 💻

That’s what Google Colab does.
It’s like Google Docs... but for code. You write code in it. It runs. It saves. It even claps for you (okay, maybe not literally, but it feels like it). 👏

Oh, and the best part? It’s FREE. Yes. Free. Like pani-puri samples. 🥹


✅ Why Use Google Colab?

Here’s what makes Colab a real superhero 🦸:

  • 🚫 No installations — no headache
  • ☁️ Works online — just a browser and Wi-Fi
  • 💾 Saves everything in Google Drive automatically
  • 🧠 Great for learning Python, ML, AI, or even just printing "Hello World!"
  • ⚡ Gives you access to GPU/TPU (big words = more power for heavy tasks)
  • 👥 Easy to share with friends, teachers, or that one cousin who thinks they’re a tech genius

🎬 Let’s Get Started – Step by Step!

🔗 Step 1: Open Google Colab

  1. Open your browser (Chrome, Edge, etc.)
  2. Type or click 👉 https://colab.research.google.com

You’ll see something like this:

🗂️ “Open recent notebooks”
📄 “Upload notebook”
✨ “Start a new one”

If you have a Google account, you’re good to go!


📒 Step 2: Create a New Notebook

Click on File → New notebook.
Ta-da! You now have a fresh digital notebook that looks like a blank page of hope and Python possibilities. 📝💖

Don’t worry about the .ipynb file extension. It’s just nerd-speak for “Python notebook.”


💬 Step 3: Write Your First Code

Each box you see is called a cell. You can write code in it.

Try this:

print("Hello, Colab!")

Now press the play button ▶️ on the left of that cell.

Boom. Your code runs. You just became a coder. 🎉
(Yes, it’s that easy. No, you don’t need to sell your soul to install Python.)


➕ Step 4: Add More Cells (Like Adding Pages in a Diary)

You can add more cells by clicking:

  • Code → to add a Python code box
  • Text → to write notes, titles, or your emotional code rants 😅

You can even write like a blog using Markdown — we’ll talk about that later!


💾 Step 5: Save Your Notebook

The beauty of Colab? It saves automatically to your Google Drive! 🪄

Want to download it?

Click on File → Download → choose .ipynb or .py format

Or send it to someone like a Google Doc. They’ll thank you later.


🧰 Bonus Round: Do Cool Stuff Like a Pro

📦 Install Python Libraries
Need extra tools like pandas, numpy, etc.?
Type this in a code cell:

!pip install pandas

That ! is like saying: “Hey Colab, run this like a command!”


📊 Use Libraries for Data Science

Try this:

import pandas as pd
data = pd.DataFrame({'Name': ['You', 'Me'], 'Coolness': [100, 99]})
print(data)

Output? A little table. Congratulations, you’re a data scientist now. 📈


⚙️ Use GPU for Heavy Workouts

If you’re doing machine learning or AI:

  • Click Runtime → Change runtime type
  • Select GPU or TPU

It’s like upgrading from a bicycle to a Ferrari 🚴 → 🏎️


😅 What if You Get Disconnected?

It happens. Colab sometimes naps if you don’t use it for a while.

You’ll see:
🔌 “Runtime disconnected”

Just click “Reconnect” — and you're back!
(Think of it like Colab taking a coffee break ☕)


🎉 Final Words

Google Colab is like that one friend who brings snacks, solves problems, and never asks for rent. 😄

It makes learning Python (and other cool stuff) fun, fast, and fuss-free.
So go ahead — open Colab, write some code, break a few things (it’s fine!), and enjoy the process.

Remember: Everyone starts with print(" Hello World! ") 💻💬

Catch you in the next blog.

Happy Coding!

3 Reactions

0 Bookmarks

Read next

Priyanshu Sharma

Priyanshu Sharma

Dec 14, 24

3 min read

|

How to Setup & Install VS Code: A Beginner’s Guide

Priyanshu Sharma

Priyanshu Sharma

Dec 17, 24

6 min read

|

Essential VS Code Extensions for Developers