Introduction to notebooks
This document provides an introduction to
Colab Enterprise notebooks
in BigQuery. You can use notebooks to complete
analysis and machine learning (ML) workflows by using SQL, Python, and other
common packages and APIs. Notebooks offer improved collaboration and management
with the following options:
- Share notebooks with specific users and groups by using
Identity and Access Management (IAM).
- Review the notebook version history.
- Revert to or branch from previous versions of the notebook.
Notebooks are BigQuery Studio
code assets powered by Dataform.
Saved queries are also code assets.
All code assets are stored in a default
region. Updating the default region changes
the region for all code assets created after that point.
Notebook capabilities are available only in the Trusted Cloud console.
Benefits
Notebooks in BigQuery offer the following benefits:
- BigQuery DataFrames is
integrated into notebooks, no setup required. BigQuery DataFrames is
a Python API that you can use to analyze BigQuery data at
scale by using the
pandas DataFrame
and
scikit-learn APIs.
- Assistive code development powered by
Gemini generative AI.
- Auto-completion of SQL statements, the same as in the
BigQuery editor.
- The ability to save, share, and manage versions of notebooks.
- The ability to use matplotlib,
seaborn, and other popular
libraries to visualize data at any point in your workflow.
Runtime management
BigQuery uses
Colab Enterprise runtimes to run
notebooks.
A notebook runtime is a Compute Engine virtual machine allocated to a
particular user to enable code execution in a notebook. Multiple notebooks can
share the same runtime. However, each runtime belongs to only one user and can't
be used by others. Notebook runtimes are created based on template, which are
typically defined by users with administrative privileges. You can change to a
runtime that uses a different template type at any time.
Notebook security
You control access to notebooks by using Identity and Access Management (IAM) roles. For
more information, see
Grant access to notebooks.
To detect vulnerabilities in Python packages that you use in your notebooks,
install and use
Notebook Security Scanner
(Preview).
Supported regions
BigQuery Studio lets you save, share, and manage versions of
notebooks. The following table lists the regions where BigQuery Studio is
available:
|
Region description |
Region name |
Details |
Africa |
|
Johannesburg |
africa-south1 |
|
Americas |
|
Columbus |
us-east5 |
|
|
Dallas |
us-south1 |
Low CO2
|
|
Iowa |
us-central1 |
Low CO2
|
|
Los Angeles |
us-west2 |
|
|
Las Vegas |
us-west4 |
|
|
Montréal |
northamerica-northeast1 |
Low CO2
|
|
N. Virginia |
us-east4 |
|
|
Oregon |
us-west1 |
Low CO2 |
|
São Paulo |
southamerica-east1 |
Low CO2
|
|
South Carolina |
us-east1 |
|
Asia Pacific |
|
Hong Kong |
asia-east2 |
|
|
Jakarta |
asia-southeast2 |
|
|
Mumbai |
asia-south1 |
|
|
Seoul |
asia-northeast3 |
|
|
Singapore |
asia-southeast1 |
|
|
Sydney |
australia-southeast1 |
|
|
Taiwan |
asia-east1 |
|
|
Tokyo |
asia-northeast1 |
|
Europe |
|
Belgium |
europe-west1 |
Low CO2
|
|
Frankfurt |
europe-west3 |
|
|
London |
europe-west2 |
Low CO2
|
|
Madrid |
europe-southwest1 |
Low CO2
|
|
Netherlands |
europe-west4 |
Low CO2
|
|
Turin |
europe-west12 |
|
|
Zürich |
europe-west6 |
Low CO2
|
Middle East |
|
Doha |
me-central1 |
|
|
Dammam |
me-central2 |
|
Pricing
For pricing information about BigQuery Studio notebooks, see Notebook runtime pricing.
Monitor slot usage
You can monitor your BigQuery Studio notebook slot usage by viewing your Cloud Billing report in the Trusted Cloud console. In the Cloud Billing report, apply a filter with the label goog-bq-feature-type with the value BQ_STUDIO_NOTEBOOK to view slot usage and costs from BigQuery Studio notebook.
Troubleshooting
For more information, see Troubleshoot Colab Enterprise.
What's next
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 2025-08-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eBigQuery notebooks facilitate analysis and machine learning workflows through SQL, Python, and other tools, offering enhanced collaboration features like sharing, version history, and branching.\u003c/p\u003e\n"],["\u003cp\u003eNotebooks are code assets within BigQuery Studio, powered by Dataform, and are integrated with BigQuery DataFrames for scalable data analysis using pandas and scikit-learn.\u003c/p\u003e\n"],["\u003cp\u003eNotebooks provide assistive code development through Gemini AI, auto-completion of SQL statements, and data visualization via matplotlib and seaborn libraries.\u003c/p\u003e\n"],["\u003cp\u003eNotebooks use Colab Enterprise runtimes, which are user-specific Compute Engine virtual machines that can be shared by multiple notebooks but not by multiple users.\u003c/p\u003e\n"],["\u003cp\u003eAccess to notebooks is controlled via Identity and Access Management (IAM), and pricing information for notebook runtimes and slot usage can be monitored via Cloud Billing reports.\u003c/p\u003e\n"]]],[],null,["# Introduction to notebooks\n=========================\n\nThis document provides an introduction to\n[Colab Enterprise notebooks](/colab/docs/introduction)\nin BigQuery. You can use notebooks to complete\nanalysis and machine learning (ML) workflows by using SQL, Python, and other\ncommon packages and APIs. Notebooks offer improved collaboration and management\nwith the following options:\n\n- Share notebooks with specific users and groups by using Identity and Access Management (IAM).\n- Review the notebook version history.\n- Revert to or branch from previous versions of the notebook.\n\nNotebooks are [BigQuery Studio](/bigquery/docs/query-overview#bigquery-studio)\ncode assets powered by [Dataform](/dataform/docs/overview).\n[Saved queries](/bigquery/docs/saved-queries-introduction) are also code assets.\nAll code assets are stored in a default\n[region](#supported_regions). Updating the default region changes\nthe region for all code assets created after that point.\n\nNotebook capabilities are available only in the Google Cloud console.\n\nBenefits\n--------\n\nNotebooks in BigQuery offer the following benefits:\n\n- [BigQuery DataFrames](/python/docs/reference/bigframes/latest) is integrated into notebooks, no setup required. BigQuery DataFrames is a Python API that you can use to analyze BigQuery data at scale by using the [pandas DataFrame](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html) and [scikit-learn](https://scikit-learn.org/stable/modules/classes.html) APIs.\n- Assistive code development powered by [Gemini generative AI](/bigquery/docs/write-sql-gemini).\n- Auto-completion of SQL statements, the same as in the BigQuery editor.\n- The ability to save, share, and manage versions of notebooks.\n- The ability to use [matplotlib](https://matplotlib.org/), [seaborn](https://seaborn.pydata.org/), and other popular libraries to visualize data at any point in your workflow.\n\nRuntime management\n------------------\n\nBigQuery uses\n[Colab Enterprise runtimes](/colab/docs/create-runtime) to run\nnotebooks.\n\nA notebook runtime is a Compute Engine virtual machine allocated to a\nparticular user to enable code execution in a notebook. Multiple notebooks can\nshare the same runtime. However, each runtime belongs to only one user and can't\nbe used by others. Notebook runtimes are created based on template, which are\ntypically defined by users with administrative privileges. You can change to a\nruntime that uses a different template type at any time.\n\nNotebook security\n-----------------\n\nYou control access to notebooks by using Identity and Access Management (IAM) roles. For\nmore information, see\n[Grant access to notebooks](/bigquery/docs/create-notebooks#grant_access_to_notebooks).\n\nTo detect vulnerabilities in Python packages that you use in your notebooks,\ninstall and use\n[Notebook Security Scanner](/security-command-center/docs/enable-notebook-security-scanner)\n([Preview](/products#product-launch-stages)).\n\nSupported regions\n-----------------\n\nBigQuery Studio lets you save, share, and manage versions of\nnotebooks. The following table lists the regions where BigQuery Studio is\navailable:\n\nPricing\n-------\n\nFor pricing information about BigQuery Studio notebooks, see [Notebook runtime pricing](/bigquery/pricing#external_services).\n\nMonitor slot usage\n------------------\n\nYou can monitor your BigQuery Studio notebook slot usage by viewing your [Cloud Billing report](/billing/docs/reports) in the Google Cloud console. In the Cloud Billing report, apply a filter with the label **goog-bq-feature-type** with the value **BQ_STUDIO_NOTEBOOK** to view slot usage and costs from BigQuery Studio notebook.\n\nTroubleshooting\n---------------\n\nFor more information, see [Troubleshoot Colab Enterprise](/colab/docs/troubleshooting).\n\nWhat's next\n-----------\n\n- Learn how to [create notebooks](/bigquery/docs/create-notebooks).\n- Learn how to [manage notebooks](/bigquery/docs/manage-notebooks)."]]