βΉοΈ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 2 months ago (distributed domain, exempt) |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://colab.research.google.com/ |
| Last Crawled | 2026-02-07 03:57:36 (1 month ago) |
| First Indexed | not set |
| HTTP Status Code | 200 |
| Meta Title | Welcome To Colab - Colab |
| Meta Description | null |
| Meta Canonical | null |
| Boilerpipe Text | Gemini
Welcome to Colab!
Gemini
Google Colab is available in VS Code!
Try the new
Google Colab extension
for Visual Studio Code. You can get up and running in just a few clicks:
In VS Code, open the
Extensions
view and search for 'Google Colab' to install.
Open the kernel selector by creating or opening any
.ipynb
notebook file in your local workspace and either running a cell or clicking the
Select Kernel
button in the top right.
Click
Colab
and then select your desired runtime, sign in with your Google account, and you're all set!
See more details in our
announcement blog here
.
Gemini
π Free Pro Plan for Gemini & Colab for US College Students π
Get more access to our most accurate model Gemini 3 Pro for advanced coding, complex research, and innovative projects, backed by Colabβs dedicated high-compute resources for data science and machine learning.
Get the Gemini free offer at
gemini.google/students
.
Get the Colab free offer at
colab.research.google.com/signup
.
Terms Apply.
Gemini
Access popular AI models via Google-Colab-AI Without an API Key
All users have access to most popular LLMs via the
google-colab-ai
Python library, and paid users have access to a wider selection of models. For more details, refer to the
getting started with google colab ai
.
Gemini
Gemini
Explore the Gemini API
The Gemini API gives you access to Gemini models created by Google DeepMind. Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, code, and audio.
How to get started?
Go to
Google AI Studio
and log in with your Google account.
Create an API key
.
Use a quickstart for
Python
, or call the REST API using
curl
.
Discover Gemini's advanced capabilities
Play with Gemini
multimodal outputs
, mixing text and images in an iterative way.
Discover the
multimodal Live API
(demo
here
).
Learn how to
analyze images and detect items in your pictures
using Gemini (bonus, there's a
3D version
as well!).
Unlock the power of
Gemini thinking model
, capable of solving complex task with its inner thoughts.
Explore complex use cases
Use
Gemini grounding capabilities
to create a report on a company based on what the model can find on internet.
Extract
invoices and form data from PDF
in a structured way.
Create
illustrations based on a whole book
using Gemini large context window and Imagen.
To learn more, check out the
Gemini cookbook
or visit the
Gemini API documentation
.
Gemini
Colab now has AI features powered by
Gemini
. The video below provides information on how to use these features, whether you're new to Python, or a seasoned veteran.
Gemini
What is Colab?
Colab, or "Colaboratory", allows you to write and execute Python in your browser, with
Zero configuration required
Access to GPUs free of charge
Easy sharing
Whether you're a
student
, a
data scientist
or an
AI researcher
, Colab can make your work easier. Watch
Introduction to Colab
or
Colab Features You May Have Missed
to learn more, or just get started below!
Gemini
Getting started
The document you are reading is not a static web page, but an interactive environment called a
Colab notebook
that lets you write and execute code.
For example, here is a
code cell
with a short Python script that computes a value, stores it in a variable, and prints the result:
Gemini
86400
Gemini
To execute the code in the above cell, select it with a click and then either press the play button to the left of the code, or use the keyboard shortcut "Command/Ctrl+Enter". To edit the code, just click the cell and start editing.
Variables that you define in one cell can later be used in other cells:
Gemini
604800
Gemini
Colab notebooks allow you to combine
executable code
and
rich text
in a single document, along with
images
,
HTML
,
LaTeX
and more. When you create your own Colab notebooks, they are stored in your Google Drive account. You can easily share your Colab notebooks with co-workers or friends, allowing them to comment on your notebooks or even edit them. To learn more, see
Overview of Colab
. To create a new Colab notebook you can use the File menu above, or use the following link:
create a new Colab notebook
.
Colab notebooks are Jupyter notebooks that are hosted by Colab. To learn more about the Jupyter project, see
jupyter.org
.
Gemini
Data science
With Colab you can harness the full power of popular Python libraries to analyze and visualize data. The code cell below uses
numpy
to generate some random data, and uses
matplotlib
to visualize it. To edit the code, just click the cell and start editing.
Gemini
You can import your own data into Colab notebooks from your Google Drive account, including from spreadsheets, as well as from Github and many other sources. To learn more about importing data, and how Colab can be used for data science, see the links below under
Working with Data
.
Gemini
Gemini
Colab notebooks execute code on Google's cloud servers, meaning you can leverage the power of Google hardware, including
GPUs and TPUs
, regardless of the power of your machine. All you need is a browser.
For example, if you find yourself waiting for
pandas
code to finish running and want to go faster, you can switch to a GPU Runtime and use libraries like
RAPIDS cuDF
that provide zero-code-change acceleration.
Gemini
To learn more about accelerating pandas on Colab, see the
10 minute guide
or
US stock market data analysis demo
.
Gemini
Machine learning
With Colab you can import an image dataset, train an image classifier on it, and evaluate the model, all in just
a few lines of code
.
Gemini
Colab is used extensively in the machine learning community with applications including:
Getting started with TensorFlow
Developing and training neural networks
Experimenting with TPUs
Disseminating AI research
Creating tutorials
To see sample Colab notebooks that demonstrate machine learning applications, see the
machine learning examples
below.
Gemini
More Resources
Working with Notebooks in Colab
Overview of Colab
Guide to Markdown
Importing libraries and installing dependencies
Saving and loading notebooks in GitHub
Interactive forms
Interactive widgets
Working with Data
Loading data: Drive, Sheets, and Google Cloud Storage
Charts: visualizing data
Getting started with BigQuery
Machine Learning
These are a few of the notebooks related to Machine Learning, including Google's online Machine Learning course. See the
full course website
for more.
Intro to Pandas DataFrame
Intro to RAPIDS cuDF to accelerate pandas
Getting Started with cuML's accelerator mode
Using Accelerated Hardware
Train a CNN to classify handwritten digits on the MNIST dataset using Flax NNX API
Train a Vision Transformer (ViT) for image classification with JAX
Text classification with a transformer language model using JAX
Gemini
Featured examples
Train a miniGPT language model with JAX AI Stack
LoRA/QLoRA finetuning for LLM using Tunix
Parameter-efficient fine-tuning of Gemma with LoRA and QLoRA
Loading Hugging Face Transformers Checkpoints
8-bit Integer Quantization in Keras
Float8 training and inference with a simple Transformer model
Pretraining a Transformer from scratch with KerasHub
Simple MNIST convnet
Image classification from scratch using Keras 3
Image Classification with KerasHub |
| Markdown | close
close
info
This notebook is open with private outputs. Outputs will not be saved. You can disable this in [Notebook settings](https://colab.research.google.com/)
.
close
Welcome To Colab\_
File
Edit
View
Insert
Runtime
Tools
Help
settings
link
Share
spark
Gemini
[Sign in](https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fcolab.research.google.com%2F&ec=GAZAqQM)
Commands
Code
Text
Copy to Drive
link
settings
expand\_less
expand\_more
format\_list\_bulleted
find\_in\_page
code
eye\_tracking
vpn\_key
folder
table
### Table of contents
tab
close
[Welcome to Colab\!](https://colab.research.google.com/#scrollTo=Welcome_to_Colab_)
play\_arrow
more\_vert
[Google Colab is available in VS Code\!](https://colab.research.google.com/#scrollTo=Google_Colab_is_available_in_VS_Code_)
more\_vert
[π Free Pro Plan for Gemini & Colab for US College Students π](https://colab.research.google.com/#scrollTo=_Free_Pro_Plan_for_Gemini_Colab_for_US_College_Students_)
more\_vert
[Access popular AI models via Google-Colab-AI Without an API Key](https://colab.research.google.com/#scrollTo=Access_popular_AI_models_via_Google_Colab_AI_Without_an_API_Key)
play\_arrow
more\_vert
[Explore the Gemini API](https://colab.research.google.com/#scrollTo=Explore_the_Gemini_API)
more\_vert
[Getting started](https://colab.research.google.com/#scrollTo=Getting_started)
play\_arrow
more\_vert
[Data science](https://colab.research.google.com/#scrollTo=Data_science)
play\_arrow
more\_vert
[Machine learning](https://colab.research.google.com/#scrollTo=Machine_learning)
more\_vert
[More Resources](https://colab.research.google.com/#scrollTo=More_Resources)
more\_vert
[Featured examples](https://colab.research.google.com/#scrollTo=Featured_examples)
more\_vert
add
Section
Notebook
more\_vert
close
***
spark
Gemini
keyboard\_arrow\_down
# Welcome to Colab\!
subdirectory\_arrow\_right
21 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## Google Colab is available in VS Code\!

Try the new [Google Colab extension](https://www.google.com/url?q=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3DGoogle.colab) for Visual Studio Code. You can get up and running in just a few clicks:
- In VS Code, open the ***Extensions*** view and search for 'Google Colab' to install.
- Open the kernel selector by creating or opening any `.ipynb` notebook file in your local workspace and either running a cell or clicking the ***Select Kernel*** button in the top right.
- Click ***Colab*** and then select your desired runtime, sign in with your Google account, and you're all set\!
See more details in our [announcement blog here](https://www.google.com/url?q=https%3A%2F%2Fdevelopers.googleblog.com%2Fgoogle-colab-is-coming-to-vs-code).
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## π Free Pro Plan for Gemini & Colab for US College Students π
Get more access to our most accurate model Gemini 3 Pro for advanced coding, complex research, and innovative projects, backed by Colabβs dedicated high-compute resources for data science and machine learning.
Get the Gemini free offer at [gemini.google/students](https://www.google.com/url?q=https%3A%2F%2Fgemini.google%2Fstudents%3Futm_source%3Dcolab%26utm_medium%3Dbanner%26utm_campaign%3Dstudents_xpa_us-colab-banner).
Get the Colab free offer at [colab.research.google.com/signup](https://colab.research.google.com/signup).
Terms Apply.
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## Access popular AI models via Google-Colab-AI Without an API Key
All users have access to most popular LLMs via the `google-colab-ai` Python library, and paid users have access to a wider selection of models. For more details, refer to the [getting started with google colab ai](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/Getting_started_with_google_colab_ai.ipynb).
subdirectory\_arrow\_right
1 cell hidden
***
spark
Gemini
from google.colab import ai
response = ai.generate\_text("What is the capital of France?")
***
spark
Gemini
keyboard\_arrow\_down
## Explore the Gemini API
The Gemini API gives you access to Gemini models created by Google DeepMind. Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, code, and audio.
**How to get started?**
- Go to [Google AI Studio](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2F) and log in with your Google account.
- [Create an API key](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2Fapp%2Fapikey).
- Use a quickstart for [Python](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started.ipynb), or call the REST API using [curl](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Prompting_REST.ipynb).
**Discover Gemini's advanced capabilities**
- Play with Gemini [multimodal outputs](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Image-out.ipynb), mixing text and images in an iterative way.
- Discover the [multimodal Live API](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI.ipynb) (demo [here](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2Flive)).
- Learn how to [analyze images and detect items in your pictures](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Spatial_understanding.ipynb%22) using Gemini (bonus, there's a [3D version](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Spatial_understanding_3d.ipynb) as well!).
- Unlock the power of [Gemini thinking model](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_thinking.ipynb), capable of solving complex task with its inner thoughts.
**Explore complex use cases**
- Use [Gemini grounding capabilities](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_grounding_for_research_report.ipynb) to create a report on a company based on what the model can find on internet.
- Extract [invoices and form data from PDF](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb) in a structured way.
- Create [illustrations based on a whole book](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Book_illustration.ipynb) using Gemini large context window and Imagen.
To learn more, check out the [Gemini cookbook](https://github.com/google-gemini/cookbook) or visit the [Gemini API documentation](https://www.google.com/url?q=https%3A%2F%2Fai.google.dev%2Fdocs%2F).
subdirectory\_arrow\_right
2 cells hidden
***
spark
Gemini
Colab now has AI features powered by [Gemini](https://www.google.com/url?q=https%3A%2F%2Fgemini.google.com). The video below provides information on how to use these features, whether you're new to Python, or a seasoned veteran.
[](https://www.youtube.com/watch?v=V7RXyqFUR98)
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## What is Colab?
Colab, or "Colaboratory", allows you to write and execute Python in your browser, with
- Zero configuration required
- Access to GPUs free of charge
- Easy sharing
Whether you're a **student**, a **data scientist** or an **AI researcher**, Colab can make your work easier. Watch [Introduction to Colab](https://www.youtube.com/watch?v=inN8seMm7UI) or [Colab Features You May Have Missed](https://www.youtube.com/watch?v=rNgswRZ2C1Y) to learn more, or just get started below\!
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## **Getting started**
The document you are reading is not a static web page, but an interactive environment called a **Colab notebook** that lets you write and execute code.
For example, here is a **code cell** with a short Python script that computes a value, stores it in a variable, and prints the result:
subdirectory\_arrow\_right
4 cells hidden
***
spark
Gemini
seconds\_in\_a\_day = 24 \* 60 \* 60
seconds\_in\_a\_day
```
86400
```
***
spark
Gemini
To execute the code in the above cell, select it with a click and then either press the play button to the left of the code, or use the keyboard shortcut "Command/Ctrl+Enter". To edit the code, just click the cell and start editing.
Variables that you define in one cell can later be used in other cells:
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
seconds\_in\_a\_week = 7 \* seconds\_in\_a\_day
seconds\_in\_a\_week
```
604800
```
***
spark
Gemini
Colab notebooks allow you to combine **executable code** and **rich text** in a single document, along with **images**, **HTML**, **LaTeX** and more. When you create your own Colab notebooks, they are stored in your Google Drive account. You can easily share your Colab notebooks with co-workers or friends, allowing them to comment on your notebooks or even edit them. To learn more, see [Overview of Colab](https://colab.research.google.com/notebooks/basic_features_overview.ipynb). To create a new Colab notebook you can use the File menu above, or use the following link: [create a new Colab notebook](http://colab.research.google.com#create=true).
Colab notebooks are Jupyter notebooks that are hosted by Colab. To learn more about the Jupyter project, see [jupyter.org](https://www.jupyter.org/).
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## Data science
With Colab you can harness the full power of popular Python libraries to analyze and visualize data. The code cell below uses **numpy** to generate some random data, and uses **matplotlib** to visualize it. To edit the code, just click the cell and start editing.
subdirectory\_arrow\_right
4 cells hidden
***
spark
Gemini
You can import your own data into Colab notebooks from your Google Drive account, including from spreadsheets, as well as from Github and many other sources. To learn more about importing data, and how Colab can be used for data science, see the links below under [Working with Data](https://colab.research.google.com/#working-with-data).
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
import numpy as np
import IPython.display as display
from matplotlib import pyplot as plt
import io
import base64
ys = 200 + np.random.randn(100)
x = \[x for x in range(len(ys))\]
fig = plt.figure(figsize=(4, 3), facecolor='w')
plt.plot(x, ys, '-')
plt.fill\_between(x, ys, 195, where=(ys \> 195), facecolor='g', alpha=0\.6)
plt.title("Sample Visualization", fontsize=10)
data = io.BytesIO()
plt.savefig(data)
image = F"data:image/png;base64,{base64.b64encode(data.getvalue()).decode()}"
alt = "Sample Visualization"
display.display(display.Markdown(F"""!\[{alt}\]({image})"""))
plt.close(fig)
***
spark
Gemini
Colab notebooks execute code on Google's cloud servers, meaning you can leverage the power of Google hardware, including [GPUs and TPUs](https://colab.research.google.com/#using-accelerated-hardware), regardless of the power of your machine. All you need is a browser.
For example, if you find yourself waiting for **pandas** code to finish running and want to go faster, you can switch to a GPU Runtime and use libraries like [RAPIDS cuDF](https://www.google.com/url?q=https%3A%2F%2Frapids.ai%2Fcudf-pandas) that provide zero-code-change acceleration.
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
To learn more about accelerating pandas on Colab, see the [10 minute guide](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cudf_pandas_colab_demo.ipynb) or [US stock market data analysis demo](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cudf_pandas_stocks_demo.ipynb).
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## Machine learning
With Colab you can import an image dataset, train an image classifier on it, and evaluate the model, all in just [a few lines of code](https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/quickstart/beginner.ipynb).
subdirectory\_arrow\_right
1 cell hidden
***
spark
Gemini
Colab is used extensively in the machine learning community with applications including:
- Getting started with TensorFlow
- Developing and training neural networks
- Experimenting with TPUs
- Disseminating AI research
- Creating tutorials
To see sample Colab notebooks that demonstrate machine learning applications, see the [machine learning examples](https://colab.research.google.com/#machine-learning-examples) below.
subdirectory\_arrow\_right
0 cells hidden
***
spark
Gemini
keyboard\_arrow\_down
## More Resources
### Working with Notebooks in Colab
- [Overview of Colab](https://colab.research.google.com/notebooks/basic_features_overview.ipynb)
- [Guide to Markdown](https://colab.research.google.com/notebooks/markdown_guide.ipynb)
- [Importing libraries and installing dependencies](https://colab.research.google.com/notebooks/snippets/importing_libraries.ipynb)
- [Saving and loading notebooks in GitHub](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/colab-github-demo.ipynb)
- [Interactive forms](https://colab.research.google.com/notebooks/forms.ipynb)
- [Interactive widgets](https://colab.research.google.com/notebooks/widgets.ipynb)
### Working with Data
- [Loading data: Drive, Sheets, and Google Cloud Storage](https://colab.research.google.com/notebooks/io.ipynb)
- [Charts: visualizing data](https://colab.research.google.com/notebooks/charts.ipynb)
- [Getting started with BigQuery](https://colab.research.google.com/notebooks/bigquery.ipynb)
### Machine Learning
These are a few of the notebooks related to Machine Learning, including Google's online Machine Learning course. See the [full course website](https://developers.google.com/machine-learning/crash-course/) for more.
- [Intro to Pandas DataFrame](https://colab.research.google.com/github/google/eng-edu/blob/main/ml/cc/exercises/pandas_dataframe_ultraquick_tutorial.ipynb)
- [Intro to RAPIDS cuDF to accelerate pandas](https://www.google.com/url?q=https%3A%2F%2Fnvda.ws%2Frapids-cudf)
- [Getting Started with cuML's accelerator mode](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cuml_sklearn_colab_demo.ipynb)
### Using Accelerated Hardware
- [Train a CNN to classify handwritten digits on the MNIST dataset using Flax NNX API](https://colab.research.google.com/github/google/flax/blob/main/docs_nnx/mnist_tutorial.ipynb)
- [Train a Vision Transformer (ViT) for image classification with JAX](https://colab.research.google.com/github/jax-ml/jax-ai-stack/blob/main/docs/source/JAX_Vision_transformer.ipynb)
- [Text classification with a transformer language model using JAX](https://colab.research.google.com/github/jax-ml/jax-ai-stack/blob/main/docs/source/JAX_transformer_text_classification.ipynb)
subdirectory\_arrow\_right
1 cell hidden
***
spark
Gemini
keyboard\_arrow\_down
### Featured examples
- [Train a miniGPT language model with JAX AI Stack](https://www.google.com/url?q=https%3A%2F%2Fdocs.jaxstack.ai%2Fen%2Flatest%2FJAX_for_LLM_pretraining.html)
- [LoRA/QLoRA finetuning for LLM using Tunix](https://github.com/google/tunix/blob/main/examples/qlora_gemma.ipynb)
- [Parameter-efficient fine-tuning of Gemma with LoRA and QLoRA](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fkeras_recipes%2Fparameter_efficient_finetuning_of_gemma_with_lora_and_qlora%2F)
- [Loading Hugging Face Transformers Checkpoints](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Fhugging_face_keras_integration%2F)
- [8-bit Integer Quantization in Keras](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fguides%2Fint8_quantization_in_keras%2F)
- [Float8 training and inference with a simple Transformer model](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fkeras_recipes%2Ffloat8_training_and_inference_with_transformer%2F)
- [Pretraining a Transformer from scratch with KerasHub](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Ftransformer_pretraining%2F)
- [Simple MNIST convnet](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fvision%2Fmnist_convnet%2F)
- [Image classification from scratch using Keras 3](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fvision%2Fimage_classification_from_scratch%2F)
- [Image Classification with KerasHub](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Fclassification_with_keras_hub%2F)
subdirectory\_arrow\_right
0 cells hidden
***
[Colab paid products](https://colab.research.google.com/signup?utm_source=footer&utm_medium=link&utm_campaign=footer_links) - [Cancel contracts here](https://colab.research.google.com/cancel-subscription)
more\_vert
close
more\_vert
close
more\_vert
close
data\_object
Variables
terminal
Terminal
New notebook in Drive
Open notebook
Upload notebook
Rename
Save a copy in Drive
Save a copy as a GitHub Gist
Save a copy in GitHub
Save
Revision history
Notebook info
Download βΊ
Print
Download .ipynb
Download .py
Undo
Redo
Select all cells
Cut cell or selection
Copy cell or selection
Paste
Delete selected cells
Find and replace
Find next
Find previous
Notebook settings
Clear all outputs
check
Table of contents
Executed code history
Start slideshow
Start slideshow from beginning
Comments βΊ
Collapse sections
Expand sections
Save collapsed section layout
Show/hide code
Show/hide output
Focus next tab
Focus previous tab
Move tab to next pane
Move tab to previous pane
Hide comments
Minimize comments
Expand comments
Code cell
Text cell
Section header cell
Scratch code cell
Code snippets
Add a form field
Run all
Run before
Run the focused cell
Run selection
Run cell and below
Interrupt execution
Restart session
Restart session and run all
Disconnect and delete runtime
Change runtime type
Manage sessions
View resources
View runtime logs
Deploy to Google Cloud Run
Command palette
Settings
Keyboard shortcuts
Diff notebooks (opens in a new tab)
Frequently asked questions
View release notes
Search code snippets
Report a bug
Send feedback
View terms of service |
| Readable Markdown | Gemini
Welcome to Colab\!
Gemini
Google Colab is available in VS Code\!  Try the new [Google Colab extension](https://www.google.com/url?q=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3DGoogle.colab) for Visual Studio Code. You can get up and running in just a few clicks: In VS Code, open the ***Extensions*** view and search for 'Google Colab' to install. Open the kernel selector by creating or opening any `.ipynb` notebook file in your local workspace and either running a cell or clicking the ***Select Kernel*** button in the top right. Click ***Colab*** and then select your desired runtime, sign in with your Google account, and you're all set\! See more details in our [announcement blog here](https://www.google.com/url?q=https%3A%2F%2Fdevelopers.googleblog.com%2Fgoogle-colab-is-coming-to-vs-code).
Gemini
π Free Pro Plan for Gemini & Colab for US College Students π Get more access to our most accurate model Gemini 3 Pro for advanced coding, complex research, and innovative projects, backed by Colabβs dedicated high-compute resources for data science and machine learning. Get the Gemini free offer at [gemini.google/students](https://www.google.com/url?q=https%3A%2F%2Fgemini.google%2Fstudents%3Futm_source%3Dcolab%26utm_medium%3Dbanner%26utm_campaign%3Dstudents_xpa_us-colab-banner).
Get the Colab free offer at [colab.research.google.com/signup](https://colab.research.google.com/signup).
Terms Apply.
Gemini
Access popular AI models via Google-Colab-AI Without an API Key All users have access to most popular LLMs via the `google-colab-ai` Python library, and paid users have access to a wider selection of models. For more details, refer to the [getting started with google colab ai](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/Getting_started_with_google_colab_ai.ipynb).
Gemini
Gemini
Explore the Gemini API The Gemini API gives you access to Gemini models created by Google DeepMind. Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, code, and audio. **How to get started?** Go to [Google AI Studio](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2F) and log in with your Google account. [Create an API key](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2Fapp%2Fapikey). Use a quickstart for [Python](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started.ipynb), or call the REST API using [curl](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/rest/Prompting_REST.ipynb). **Discover Gemini's advanced capabilities** Play with Gemini [multimodal outputs](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Image-out.ipynb), mixing text and images in an iterative way. Discover the [multimodal Live API](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_LiveAPI.ipynb) (demo [here](https://www.google.com/url?q=https%3A%2F%2Faistudio.google.com%2Flive)). Learn how to [analyze images and detect items in your pictures](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Spatial_understanding.ipynb%22) using Gemini (bonus, there's a [3D version](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Spatial_understanding_3d.ipynb) as well!). Unlock the power of [Gemini thinking model](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Get_started_thinking.ipynb), capable of solving complex task with its inner thoughts. **Explore complex use cases** Use [Gemini grounding capabilities](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_grounding_for_research_report.ipynb) to create a report on a company based on what the model can find on internet. Extract [invoices and form data from PDF](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb) in a structured way. Create [illustrations based on a whole book](https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Book_illustration.ipynb) using Gemini large context window and Imagen. To learn more, check out the [Gemini cookbook](https://github.com/google-gemini/cookbook) or visit the [Gemini API documentation](https://www.google.com/url?q=https%3A%2F%2Fai.google.dev%2Fdocs%2F).
Gemini
Colab now has AI features powered by [Gemini](https://www.google.com/url?q=https%3A%2F%2Fgemini.google.com). The video below provides information on how to use these features, whether you're new to Python, or a seasoned veteran. [](https://www.youtube.com/watch?v=V7RXyqFUR98)
Gemini
What is Colab? Colab, or "Colaboratory", allows you to write and execute Python in your browser, with Zero configuration required Access to GPUs free of charge Easy sharing Whether you're a **student**, a **data scientist** or an **AI researcher**, Colab can make your work easier. Watch [Introduction to Colab](https://www.youtube.com/watch?v=inN8seMm7UI) or [Colab Features You May Have Missed](https://www.youtube.com/watch?v=rNgswRZ2C1Y) to learn more, or just get started below\!
Gemini
**Getting started** The document you are reading is not a static web page, but an interactive environment called a **Colab notebook** that lets you write and execute code. For example, here is a **code cell** with a short Python script that computes a value, stores it in a variable, and prints the result:
Gemini
```
86400
```
Gemini
To execute the code in the above cell, select it with a click and then either press the play button to the left of the code, or use the keyboard shortcut "Command/Ctrl+Enter". To edit the code, just click the cell and start editing. Variables that you define in one cell can later be used in other cells:
Gemini
```
604800
```
Gemini
Colab notebooks allow you to combine **executable code** and **rich text** in a single document, along with **images**, **HTML**, **LaTeX** and more. When you create your own Colab notebooks, they are stored in your Google Drive account. You can easily share your Colab notebooks with co-workers or friends, allowing them to comment on your notebooks or even edit them. To learn more, see [Overview of Colab](https://colab.research.google.com/notebooks/basic_features_overview.ipynb). To create a new Colab notebook you can use the File menu above, or use the following link: [create a new Colab notebook](http://colab.research.google.com#create=true). Colab notebooks are Jupyter notebooks that are hosted by Colab. To learn more about the Jupyter project, see [jupyter.org](https://www.jupyter.org/).
Gemini
Data science With Colab you can harness the full power of popular Python libraries to analyze and visualize data. The code cell below uses **numpy** to generate some random data, and uses **matplotlib** to visualize it. To edit the code, just click the cell and start editing.
Gemini
You can import your own data into Colab notebooks from your Google Drive account, including from spreadsheets, as well as from Github and many other sources. To learn more about importing data, and how Colab can be used for data science, see the links below under [Working with Data](https://colab.research.google.com/#working-with-data).
Gemini
Gemini
Colab notebooks execute code on Google's cloud servers, meaning you can leverage the power of Google hardware, including [GPUs and TPUs](https://colab.research.google.com/#using-accelerated-hardware), regardless of the power of your machine. All you need is a browser. For example, if you find yourself waiting for **pandas** code to finish running and want to go faster, you can switch to a GPU Runtime and use libraries like [RAPIDS cuDF](https://www.google.com/url?q=https%3A%2F%2Frapids.ai%2Fcudf-pandas) that provide zero-code-change acceleration.
Gemini
To learn more about accelerating pandas on Colab, see the [10 minute guide](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cudf_pandas_colab_demo.ipynb) or [US stock market data analysis demo](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cudf_pandas_stocks_demo.ipynb).
Gemini
Machine learning With Colab you can import an image dataset, train an image classifier on it, and evaluate the model, all in just [a few lines of code](https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/quickstart/beginner.ipynb).
Gemini
Colab is used extensively in the machine learning community with applications including: Getting started with TensorFlow Developing and training neural networks Experimenting with TPUs Disseminating AI research Creating tutorials To see sample Colab notebooks that demonstrate machine learning applications, see the [machine learning examples](https://colab.research.google.com/#machine-learning-examples) below.
Gemini
More Resources Working with Notebooks in Colab [Overview of Colab](https://colab.research.google.com/notebooks/basic_features_overview.ipynb) [Guide to Markdown](https://colab.research.google.com/notebooks/markdown_guide.ipynb) [Importing libraries and installing dependencies](https://colab.research.google.com/notebooks/snippets/importing_libraries.ipynb) [Saving and loading notebooks in GitHub](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/colab-github-demo.ipynb) [Interactive forms](https://colab.research.google.com/notebooks/forms.ipynb) [Interactive widgets](https://colab.research.google.com/notebooks/widgets.ipynb) Working with Data [Loading data: Drive, Sheets, and Google Cloud Storage](https://colab.research.google.com/notebooks/io.ipynb) [Charts: visualizing data](https://colab.research.google.com/notebooks/charts.ipynb) [Getting started with BigQuery](https://colab.research.google.com/notebooks/bigquery.ipynb) Machine Learning These are a few of the notebooks related to Machine Learning, including Google's online Machine Learning course. See the [full course website](https://developers.google.com/machine-learning/crash-course/) for more. [Intro to Pandas DataFrame](https://colab.research.google.com/github/google/eng-edu/blob/main/ml/cc/exercises/pandas_dataframe_ultraquick_tutorial.ipynb) [Intro to RAPIDS cuDF to accelerate pandas](https://www.google.com/url?q=https%3A%2F%2Fnvda.ws%2Frapids-cudf) [Getting Started with cuML's accelerator mode](https://colab.research.google.com/github/rapidsai-community/showcase/blob/main/getting_started_tutorials/cuml_sklearn_colab_demo.ipynb) Using Accelerated Hardware [Train a CNN to classify handwritten digits on the MNIST dataset using Flax NNX API](https://colab.research.google.com/github/google/flax/blob/main/docs_nnx/mnist_tutorial.ipynb) [Train a Vision Transformer (ViT) for image classification with JAX](https://colab.research.google.com/github/jax-ml/jax-ai-stack/blob/main/docs/source/JAX_Vision_transformer.ipynb) [Text classification with a transformer language model using JAX](https://colab.research.google.com/github/jax-ml/jax-ai-stack/blob/main/docs/source/JAX_transformer_text_classification.ipynb)
Gemini
Featured examples [Train a miniGPT language model with JAX AI Stack](https://www.google.com/url?q=https%3A%2F%2Fdocs.jaxstack.ai%2Fen%2Flatest%2FJAX_for_LLM_pretraining.html) [LoRA/QLoRA finetuning for LLM using Tunix](https://github.com/google/tunix/blob/main/examples/qlora_gemma.ipynb) [Parameter-efficient fine-tuning of Gemma with LoRA and QLoRA](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fkeras_recipes%2Fparameter_efficient_finetuning_of_gemma_with_lora_and_qlora%2F) [Loading Hugging Face Transformers Checkpoints](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Fhugging_face_keras_integration%2F) [8-bit Integer Quantization in Keras](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fguides%2Fint8_quantization_in_keras%2F) [Float8 training and inference with a simple Transformer model](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fkeras_recipes%2Ffloat8_training_and_inference_with_transformer%2F) [Pretraining a Transformer from scratch with KerasHub](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Ftransformer_pretraining%2F) [Simple MNIST convnet](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fvision%2Fmnist_convnet%2F) [Image classification from scratch using Keras 3](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fexamples%2Fvision%2Fimage_classification_from_scratch%2F) [Image Classification with KerasHub](https://www.google.com/url?q=https%3A%2F%2Fkeras.io%2Fkeras_hub%2Fguides%2Fclassification_with_keras_hub%2F) |
| Shard | 95 (laksa) |
| Root Hash | 744624608793826895 |
| Unparsed URL | com,google!research,colab,/ s443 |