Skip to content

Latest commit

 

History

History
 
 

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

AI Platform Notebooks API code samples

Sample command-line programs for interacting with the Notebooks API.

Prerequisites to run locally:

Go to the Google Cloud Console.

Under API Manager, search for the Google Cloud Notebooks API and enable it. You can also enable API via Command Line:

gcloud services enable notebooks.googleapis.com

Set Up Your Local Dev Environment

To install, run the following commands. If you want to use virtualenv (recommended), run the commands within a virtualenv.

pip install -r requirements.txt

Note: While this sample demonstrates interacting with Notebooks via the API, the functionality demonstrated here could also be accomplished using the Cloud Console or the gcloud CLI

Authentication

Please see the Google cloud authentication guide. The recommended approach to running these samples is a Service Account with a JSON key.