This guide walks you through setting up your Kaggle account, accessing Google Colab, and running your first test lab.
- Go to https://www.kaggle.com
- Click “Sign Up” in the top-right corner.
- Choose one of the following sign-up options:
- Sign up with Google (recommended)
- Sign up with Email
- Verify your email address if prompted.
- Once logged in:
- Go to your Profile → fill in your name and details.
- (Optional) Enable 2-step verification for security.
- You can now explore datasets:
- Navigate to https://www.kaggle.com/datasets
- Click on any dataset and use the Download or Copy API command options.
- Visit https://colab.research.google.com
- Log in using your Google account.
- You’ll see a welcome screen — click:
- “New Notebook” to start a new Python notebook.
- Rename your notebook:
- Click on the notebook title (
Untitled.ipynb) → give it a name, e.g.,MyFirstColab.ipynb.
- Click on the notebook title (
Try the following steps to understand the basics:
Type this in a code cell:
print("Hello, Google Colab!")Then press Shift + Enter or click the
You should see:
Hello, Google Colab!
!python --versionExample: Install numpy and test it.
!pip install numpy
import numpy as np
arr = np.array([1, 2, 3])
print("Numpy array:", arr)To access your Google Drive files:
from google.colab import drive
drive.mount('/content/drive')Follow the link shown → authorize → copy & paste the code back into Colab.
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [n**2 for n in x]
plt.plot(x, y, marker='o')
plt.title("Simple Plot in Colab")
plt.xlabel("X")
plt.ylabel("Y^2")
plt.show()-
To save your work: → Go to File → Save a copy in Drive
-
To share your notebook: → Click Share (top-right) → choose visibility (e.g., “Anyone with the link”)
- Explore Google Colab tutorials: https://colab.research.google.com/notebooks/intro.ipynb
- Join Kaggle competitions to practice: https://www.kaggle.com/competitions
- Learn about Colab GPUs: → Runtime → Change runtime type → GPU