Introduction to notebooks

This document provides an introduction toColab Enterprise notebooksin BigQuery. You can use notebooks to completeanalysis and machine learning (ML) workflows by using SQL, Python, and othercommon packages and APIs. Notebooks offer improved collaboration and managementwith the following options:

  • Share notebooks with specific users and groups by usingIdentity and Access Management (IAM).
  • Review the notebook version history.
  • Revert to or branch from previous versions of the notebook.

Notebooks areBigQuery Studiocode assets powered byDataform.Saved queries are also code assets.All code assets are stored in a defaultregion. Updating the default region changesthe region for all code assets created after that point.

Notebook capabilities are available only in the Google Cloud console.

Benefits

Notebooks in BigQuery offer the following benefits:

  • BigQuery DataFrames isintegrated into notebooks, no setup required. BigQuery DataFrames isa Python API that you can use to analyze BigQuery data atscale by using thepandas DataFrameandscikit-learn APIs.
  • Assistive code development powered byGemini generative AI.
  • Auto-completion of SQL statements, the same as in theBigQuery editor.
  • The ability to save, share, and manage versions of notebooks.
  • The ability to usematplotlib,seaborn, and other popularlibraries to visualize data at any point in your workflow.
  • The ability to write andexecute SQLin a cell that can reference Python variables from your notebook.
  • InteractiveDataFrame visualizationthat supports aggregation and customization.

Notebook gallery

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.

Note: To provide feedback or to request product enhancements, contactbigquery-notebook-gallery@google.com.

The notebook gallery is a central hub for discovering and using prebuiltnotebook templates. These templates let you perform common tasks like datapreparation, data analysis, and visualization. Notebook templates also help youexplore BigQuery Studio features, manage workflows, and promote bestpractices.

You can use notebook gallery templates to streamline your entireintent-to-insights workflow across each stage of the data lifecycle-fromingestion and exploration to advanced analytics and BigQuery ML.

The notebook gallery provides templates for every skill level. The galleryincludes fundamental templates for SQL, Python, Apache Spark, andDataFrames. You can also explore topics like generative AI and multimodal dataanalytics in BigQuery.

To get started with the notebook gallery, follow these steps:

  1. Go to theBigQuery page.

    Go to BigQuery

  2. From from the BigQuery Studio home page, clickView notebookgallery.

    The View notebook gallery link on the BigQuery Studio home page.

For more information on using notebook gallery templates, seeCreate a notebook using the notebook gallery.

Runtime management

BigQuery usesColab Enterprise runtimes to runnotebooks.

A notebook runtime is a Compute Engine virtual machine allocated to aparticular user to enable code execution in a notebook. Multiple notebooks canshare the same runtime. However, each runtime belongs to only one user and can'tbe used by others. Notebook runtimes are created based on template, which aretypically defined by users with administrative privileges. You can change to aruntime that uses a different template type at any time.

Notebook security

You control access to notebooks by using Identity and Access Management (IAM) roles. Formore information, seeGrant access to notebooks.

To detect vulnerabilities in Python packages that you use in your notebooks,install and useNotebook Security Scanner(Preview).

Supported regions

BigQuery Studio lets you save, share, and manage versions ofnotebooks. The following table lists the regions where BigQuery Studio isavailable:

Region descriptionRegion nameDetails
Africa
Johannesburgafrica-south1
Americas
Columbusus-east5
Dallasus-south1leaf iconLow CO2
Iowaus-central1leaf iconLow CO2
Las Vegasus-west4
Los Angelesus-west2
Mexiconorthamerica-south1
Montréalnorthamerica-northeast1leaf iconLow CO2
North Virginiaus-east4
Oklahomaus-central2leaf iconLow CO2
Oregonus-west1leaf iconLow CO2
Salt Lake Cityus-west3
Santiagosouthamerica-west1leaf iconLow CO2
São Paulosouthamerica-east1leaf iconLow CO2
South Carolinaus-east1
Torontonorthamerica-northeast2leaf iconLow CO2
Asia Pacific
Bangkokasia-southeast3
Delhiasia-south2
Hong Kongasia-east2
Jakartaasia-southeast2
Melbourneaustralia-southeast2
Mumbaiasia-south1
Osakaasia-northeast2
Seoulasia-northeast3
Singaporeasia-southeast1
Sydneyaustralia-southeast1
Taiwanasia-east1
Tokyoasia-northeast1
Europe
Belgiumeurope-west1leaf iconLow CO2
Berlineurope-west10
Finlandeurope-north1leaf iconLow CO2
Frankfurteurope-west3
Londoneurope-west2leaf iconLow CO2
Madrideurope-southwest1leaf iconLow CO2
Milaneurope-west8
Netherlandseurope-west4leaf iconLow CO2
Pariseurope-west9leaf iconLow CO2
Stockholmeurope-north2leaf iconLow CO2
Turineurope-west12
Warsaweurope-central2
Züricheurope-west6leaf iconLow CO2
Middle East
Dammamme-central2
Dohame-central1
Tel Avivme-west1

Pricing

For pricing information about BigQuery Studio notebooks, seeNotebook runtime pricing.

Monitor slot usage

You can monitor your BigQuery Studio notebook slot usage by viewing yourCloud Billing report in the Google Cloud console. In the Cloud Billing report, apply a filter with the labelgoog-bq-feature-type with the valueBQ_STUDIO_NOTEBOOK to view slot usage and costs from BigQuery Studio notebook.

BigQuery Studio notebook slot usage report.

Troubleshooting

For more information, seeTroubleshoot Colab Enterprise.

What's next

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

Last updated 2026-02-19 UTC.