AiCoN

Home / Posts / Google Colab

AI FOR STUDENTS
Google Colab logo
Colab

Google Colab with Gemini: write and run Python from a prompt

By AiCoN | Published 27 October 2026 | Sources checked 27 October 2026

Google Colab is a notebook that runs Python in your browser, and it has a Gemini panel built in. You describe what you want, Gemini writes the code in a notebook cell, and you can run it on the spot. On 27 October 2026 we tried one small job with made-up numbers: build an expenses table and total it by category. The code was written and run in about a minute. This is one test with sample data. We did not try GPUs, real files, or longer projects.

Quick facts

What makes this useful

In Colab the code lands in a real notebook cell and can run right there, with the result shown under it, so you can see whether it works and edit it. That suits students learning Python or anyone who wants to try a small data job without installing anything.

What we tested

On 27 October 2026 we opened a new notebook in a desktop browser, signed in to a Google account. We opened the Gemini panel, accepted the Colab privacy notice and typed: "Make a small made-up table of 12 student expenses (category and amount in rupees) with pandas, then draw a bar chart of the total per category and tell me which category is biggest."

Colab notebook with Gemini-written Python code and a summary of results in the Gemini panel
Our test, 27 October 2026: the code Gemini wrote in a Colab notebook, with the result summary in the Gemini panel on the right. The numbers are made up.

Try it yourself

  1. Go to colab.research.google.com and start a new notebook (Google account, 18 or older).
  2. Click the Gemini spark icon at the bottom of the page and accept the privacy notice if you agree.
  3. Ask for a small job using made-up data, such as the one above.
  4. Read the code before choosing Accept and Run.
  5. Do not put private or confidential data in prompts: Google says human reviewers may read them.

Sources checked 27 October 2026. Usage limits are Google's and may change.