[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/colab/docs/experiments [Back]  [Original]

Create an experiment  |  Colab Enterprise  |  Google Cloud Documentation

Create an experiment Skip to main content

Google Cloud Documentation [Google Cloud Documentation]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

Create an experiment

This page shows you how to interact with Experiments on Gemini Enterprise Agent Platform by using the side panel in Colab Enterprise.

To access Google Cloud services and APIs by running code in your Colab Enterprise notebook, you can use the credentials associated with your Google Account. To learn more, see Access Google Cloud services and APIs.

The side panel is an additional way to interact with Experiments on Agent Platform without leaving the Colab Enterprise interface.

The side panel appears to the right of an open notebook.

Buttons on the side panel to the right of an open notebook [Buttons on the side panel to the right of an open notebook]

Before you begin

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Agent Platform, Dataform, and Compute Engine APIs.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the APIs

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  6. Verify that billing is enabled for your Google Cloud project.

  7. Enable the Agent Platform, Dataform, and Compute Engine APIs.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the APIs

Required roles

To get the permissions that you need to use the side panel in a Colab Enterprise notebook, ask your administrator to grant you the following IAM roles on the project:

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

One or more of the required roles includes the dataform.repositories.list permission. Users who are granted the dataform.repositories.list permission or the Code Creator (roles/dataform.codeCreator) role in a project can list the names of code assets in that project by using the Dataform API or the Dataform command-line interface (CLI). Non-administrators using BigQuery Studio can only see code assets that they created or that were shared with them.

Experiments on Agent Platform

Experiments on Agent Platform helps you track and analyze different model architectures, hyperparameters, and training environments by letting you track the steps, inputs, and outputs of an experiment run. To learn more, see Introduction to Experiments on Agent Platform.

Create and view an experiment

You can create and view the results of an experiment by using the side panel in Colab Enterprise.

  1. In the Google Cloud console, go to the Colab Enterprise My notebooks page.

    Go to My notebooks

  2. In the Region menu, select the region that contains your notebook.

  3. Click the notebook that you want to open. If you haven't created a notebook yet, create a notebook.

  4. To the right of your notebook, in the side panel, click the icon-manage-experiments.png [icon-manage-experiments.png] Experiments button.

    The side panel expands the Experiments tab.

  5. Click the Insert sample code button.

    Colab Enterprise adds code cells to your notebook for interacting with an experiment.

  6. In your notebook, find the code cell that stores parameter values. You'll use these parameters to interact with Experiments on Agent Platform.

  7. Update the values for the following parameters:

    • PROJECT_ID: The ID of the project that your notebook is in.
    • REGION: The region that your notebook is in.
    • BUCKET_URI: A Cloud Storage bucket URI, in the format gs://BUCKET_NAME. This can be an existing bucket, or you can create it when you run the code. This bucket must be in the same project and region as your Colab Enterprise notebook.
    • EXPERIMENT_NAME: The name of your experiment. If your experiment doesn't exist, Experiments on Agent Platform creates one.
  8. If you need to create your Cloud Storage bucket, find and uncomment the following line of code:

    # ! gcloud storage buckets create {BUCKET_URI} --location={REGION} --project={PROJECT_ID}
    
  9. Run the code cells that the side panel added to your notebook.

  10. After the last code cell runs, click the icon-manage-experiments.png [icon-manage-experiments.png] View experiment button that appears.

  11. In the side panel, click the Runs tab or Details tab to see information about your experiment. To learn more, see Create and manage experiment runs.

    The side panel shows information about your experiment runs. You can create, manage, and delete runs by using Experiments on Agent Platform in the Google Cloud console or through the Agent Platform API.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-09-18 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-09-18 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page