Schedule a managed notebooks run
Vertex AI Workbench managed notebooks isdeprecated. On April 14, 2025, support for managed notebooks ended and the ability to create managed notebooks instances was removed. Existing instances will continue to function until March 30, 2026, but patches, updates, and upgrades won't be available. To continue using Vertex AI Workbench, we recommend that youmigrate your managed notebooks instances to Vertex AI Workbench instances.
This page shows you how to usethe Vertex AI Workbench managed notebooks executorto run a Python notebook file on an hourly schedule.
Before you begin
- 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.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
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.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 theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks and Vertex AI APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
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.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 theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks and Vertex AI APIs.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.
Required roles
To ensure that your instance's service account has the necessary permissions to interact with the Vertex AI Workbench executor, ask your administrator to grant your instance's service account the following IAM roles on the project:
Important: You must grant these roles to your instance's service account,not to your user account. Failure to grant the roles to the correct principal might result in permission errors.- Notebooks Viewer (
roles/notebooks.viewer) - Vertex AI User (
roles/aiplatform.user) - Storage Admin (
roles/storage.admin)
For more information about granting roles, seeManage access to projects, folders, and organizations.
Your administrator might also be able to give your instance's service account the required permissions throughcustom roles or otherpredefined roles.
Create a managed notebooks instance and example notebook file
In the first cell of the notebook file, enter the following:
# Import datetimeimportdatetime# Get the time and print itdatetime.datetime.now()print(datetime.datetime.now())
To make sure your notebook file is saved, selectFile > Save Notebook.
Schedule a run
In the Google Cloud console, go to theManaged notebooks page.
Next to the managed notebooks instancethat you want to use,clickOpen JupyterLab.
Your managed notebooks instance opens JupyterLab.
In the File Browser,double-click the example notebook file to open it.
Click the Execute button.
In theSubmit notebooks to Executor dialog, in theType field,selectSchedule-based recurring executions.
By default, the executor runs your notebook fileevery hour at the
00minute of the hour.InAdvanced options,select theRegion where you want to run your notebook.
In theCloud Storage bucket field, enter a name for your bucket,and then clickCreate and select.The executor stores your notebook outputin the Cloud Storage bucket.
ClickSubmit.
Your notebook file runs automaticallyon the schedule that you set.
When you finish the tasks that are described in this document, you can avoid continued billing by deleting the resources that you created. For more information, seeClean up.
View, share, and import an executed notebook file
By using your managed notebooks instance's JupyterLab interface,you can view your notebook output, share the results with others,and import the executed notebook file into JupyterLab.
Note: To use the Google Cloud console to view and share execution results,on theExecutions page,clickExecutions.View the execution results
In JupyterLab's navigation menu, click the Notebook Executor button.
Click theExecutions tab.
Under the execution that you want to view, clickView result.
Executor opens your result in a new browser tab.
Share the execution results
In your managed notebooks instance'sJupyterLab user interface,in the navigation menu, click the Notebook Executor button.
Click theExecutions tab.
Next to the execution that you want to share,click the options menu,and selectShare execution result.
Follow the directions in the dialogto grant users access to the execution result.
Import the executed notebook into JupyterLab
In your managed notebooks instance'sJupyterLab user interface,in the navigation menu, click the Notebook Executor button.
Click theExecutions tab.
Next to the execution that you want to import,click the options menu,and selectImport executed notebook.
If theSelect Kernel dialog appears,select the kernel that you want to open the notebook.
The executor opens the executed notebook filein JupyterLab, and stores this notebook file inthe JupyterLab File Browser in a folder namedimported_notebook_jobs.
View or delete a schedule
You can view and delete schedules by using either the Google Cloud console oryour managed notebooks instance's JupyterLab user interface.
View a schedule
View a schedule to see the frequency settings of the scheduleor to view the five most recent results of the notebook file execution.
Console
In the Google Cloud console, go to theSchedules page.
Select theRegion where you want to see schedules.
For theSchedule details page that you want to open, click its schedule name.
On theSchedule details page, you can view the schedule's last five executions.
Next to an execution name, clickView result to open the executed notebook file.
Executor opens your result in a new browser tab.
JupyterLab
In your managed notebooks instance's JupyterLab user interface, in the navigation menu, click the Notebook Executor button.
Click theSchedules tab.
Under the execution that you want to view, clickView latest execution result.
Executor opens your result in a new browser tab.
Delete a schedule
Deleting a schedule doesn't delete the executions that weregenerated from that schedule.
Console
In the Google Cloud console, go to theSchedules page.
Select theRegion that contains the schedule that you want to delete.
Select the schedule that you want to delete.
Click Delete.
JupyterLab
In your managed notebooks instance's JupyterLab user interface, in the navigation menu, click the Notebook Executor button.
Click theSchedules tab.
At the end of the schedule name, click the Open in new icon. TheSchedule details page for that schedule opens in the Google Cloud console.
Click Delete.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
Delete the instance
In the Google Cloud console, go to theManaged notebooks page.
Select theRegion that contains your instance.
Select the managed notebooks instance that you wantto delete.
Click Delete.
Delete the project
If you used resources outside ofyour managed notebooks instance,such as the Cloud Storage bucket requiredfor creating a schedule,you might want to delete your project to avoid incurring additional charges.
What's next
- Vertex AI Workbench managed notebooks instances are deprecated. Toschedule a notebook run in a Vertex AI Workbench instance, seeSchedule a notebook run.
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-18 UTC.