Skip to main content

Google Colab

Google Colab is a free, AI-enabled Notebook environment ideal for Python programming, machine learning, and data analysis.

Colab can be effectively used to access MesoSim, Q-API, and Merlin and to create new applications.

The provided notebooks are covering a wide range of topics and can be used as a starting point for your own development and analytics. Just open a notebook, make a copy, and start coding with the help of Gemini!

Accessing Google Colab

Visit Google Colab and sign in with your Google account.

The Free-tier provides execution capabilities up to 12 hours, which can be extended by using a paid plan: Colab Pro+ supports tasks up to 24 hours of runtime.

Alternatively, a Local Runtime can be used to cost-effectively extend Colab's run limitations.

Using Gemini in Google Colab

Google Colab is integrated with Gemini, providing AI-powered assistance for coding. You can use Gemini for code generation, debugging, and explanations.

1. Via the Gemini Sidebar

  • Click the Gemini icon next to your profile (top-right corner).
  • Ask questions, request code fixes, or get explanations.
Gemini by Sidebar

2. Via the Code Cell "Generate" Button

  • In a new code cell, click the "Generate" button.
  • Enter a prompt (e.g., "Re-run the backtest and show pos_vega over time.").
Gemini by Generate
  • Gemini will generate and insert relevant code.

Playground Mode

Playground Mode allows you to make ephemeral changes to the notebook without affecting the original code. This feature works also with notebooks shared with you, allowing you to experiment without the need to make a copy first. If you would like to save your changes, you can create a copy of the notebook later.

Playground Mode