Skip to main content

Notebook server configuration using the Google Cloud SDK

This package provides Python classes that can be used in the Jupyter config file (e.g. ~/.jupyter/jupyter_lab_config.py) in order to fill in some configuration using the Google Cloud SDK's gcloud tool.

Included features

This package provides utility methods to look up any configuration options stored in the active gcloud config, in particular the project and region.

Additionally, this provides a utility method to update a given Config object to connect to a kernel gateway URL managed by Google.

Prerequisites

Install both Jupyter and gcloud.

For the kernel gateway feature, you will need an installation of Jupyter that uses the jupyter_server project and the version of jupyter_server you have installed needs to be at least version 2.4.0.

You will also need to log in to gcloud:

gcloud auth login

... and configure your project and region:

gcloud config set core/project ${PROJECT}
gcloud config set compute/region ${REGION}

Install

Clone this repository, and from this directory run the following:

pip install .

Setup

If you do not already have a Jupyter config file (e.g. ~/.jupyter/jupyter_lab_config.py), the first generate one with the following command:

jupyter lab --generate-config

The open your config file and add the following two lines to the end:

import google.cloud.jupyter_config
google.cloud.jupyter_config.configure_gateway_client(c)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_cloud_jupyter_config-0.0.14.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_cloud_jupyter_config-0.0.14-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file google_cloud_jupyter_config-0.0.14.tar.gz.

File metadata

File hashes

Hashes for google_cloud_jupyter_config-0.0.14.tar.gz
Algorithm Hash digest
SHA256 a0fb143201956da8710c25bccf1d02612b38e80b9c89ee1d55d9325fdc5f1664
MD5 d909cb59cc681f50e70d59f5ab953196
BLAKE2b-256 a550eb9a4baf8b4246ae4486fdec569d0cdc0e52db1b30c6f1afead564c57422

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_cloud_jupyter_config-0.0.14.tar.gz:

Publisher: publish.yml on GoogleCloudPlatform/jupyter-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file google_cloud_jupyter_config-0.0.14-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_jupyter_config-0.0.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f046b90d2f8ff36b1704566f6e625aa18a2180197865e2fcd9e8e6b9471ec5e5
MD5 76496710e62c79010a19b36fd7c6ef70
BLAKE2b-256 cbe254ce56bd41cf82023b98d7667d3f3002c156f9b9692fc608b8cfc890de37

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_cloud_jupyter_config-0.0.14-py2.py3-none-any.whl:

Publisher: publish.yml on GoogleCloudPlatform/jupyter-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.5

1 file

0.0.4

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page