GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-docs-samples/notebooks at main · fosky94/python-docs-samples

Expand file tree

/

notebooks

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

notebooks

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
rendered
rendered
 
 
samples
samples
 
 
tutorials
tutorials
 
 
README.md
README.md
 
 
requirements-test.txt
requirements-test.txt
 
 
requirements.txt
requirements.txt
 
 

README.md

Outline

AI Platform Notebooks

AI Platform Notebooks is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production.

This directory contains code samples and tutorials. The tutorials are divided into 2 sections:

  • API code samples
  • tutorials

Notebooks API

In this folder you will find Python code samples to interact with the API

Tutorials

Run in Notebooks

  1. Create a Notebook instance
  2. Clone this repository via Jupyter console or using the Git clone button
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
  1. Open the tutorials folder and open the Jupyter notebooks

Run locally

  1. Install Jupyter notebooks (instructions)
  2. Install the dependencies in the requirements.txt file (instructions below)
  3. Registered the google-cloud-bigquery magic commands (instructions below)
  4. Set matplotlib to render inline (instructions below)

Install the dependencies

Install the dependencies with the following command:

    pip install --upgrade -r requirements.txt

Register magics and configure matplotlib

You can either perform these set up steps in a single notebook, or add the steps to your IPython configuration file to apply to all notebooks.

Perform set up steps within a notebook

To perform the set up steps for a single notebook, run the following commands in your notebook to register the BigQuery magic commands and set matplotlib to render inline:

%load_ext google.cloud.bigquery
%matplotlib inline

Perform set up steps in your IPython configuration file

To perform the set up steps implicitly for all of your notebooks, add the following code to your ipython_config.py file to register the BigQuery magic commands and set matplotlib to render inline:

c = get_config()

# Register magic commands
c.InteractiveShellApp.extensions = [
    'google.cloud.bigquery',
]

# Enable matplotlib renderings to render inline in the notebook.
c.InteractiveShellApp.matplotlib = 'inline'

See IPython documentation for more information about IPython configuration.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.