Jupyter configuration utilities using gcloud
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file google_cloud_jupyter_config-0.0.12.tar.gz.
File metadata
- Download URL: google_cloud_jupyter_config-0.0.12.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49c667400277bb2eabdfa82a39caf025bd029ba81a412c162f474c7b65246486
|
|
| MD5 |
de5012bb274aba55522f6c781f8b2f1b
|
|
| BLAKE2b-256 |
b5c4bcc16fcf2f69b93f5ea588e7ec7d817ccd3d0bb49a66dc4bfb74d33cb3f2
|
Provenance
The following attestation bundles were made for google_cloud_jupyter_config-0.0.12.tar.gz:
Publisher:
publish.yml on GoogleCloudPlatform/jupyter-extensions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_cloud_jupyter_config-0.0.12.tar.gz -
Subject digest:
49c667400277bb2eabdfa82a39caf025bd029ba81a412c162f474c7b65246486 - Sigstore transparency entry: 1248236782
- Sigstore integration time:
-
Permalink:
GoogleCloudPlatform/jupyter-extensions@4a7b783cc7f98ea4d1e87716bd5e29ae04f1cadb -
Branch / Tag:
refs/tags/google-cloud-jupyter-config-v0.0.12 - Owner: https://github.com/GoogleCloudPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a7b783cc7f98ea4d1e87716bd5e29ae04f1cadb -
Trigger Event:
push
-
Statement type:
File details
Details for the file google_cloud_jupyter_config-0.0.12-py2.py3-none-any.whl.
File metadata
- Download URL: google_cloud_jupyter_config-0.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98fbd813f115c9eb93d175d09ab820dddd077cb677f467fb5b51a61fac2a8537
|
|
| MD5 |
a2834a104279f6f94ac19aa9766d961d
|
|
| BLAKE2b-256 |
32fe0c949660b3d03395821a552d936c7cb9d7fe86a8e0558eafadd09abd755c
|
Provenance
The following attestation bundles were made for google_cloud_jupyter_config-0.0.12-py2.py3-none-any.whl:
Publisher:
publish.yml on GoogleCloudPlatform/jupyter-extensions
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_cloud_jupyter_config-0.0.12-py2.py3-none-any.whl -
Subject digest:
98fbd813f115c9eb93d175d09ab820dddd077cb677f467fb5b51a61fac2a8537 - Sigstore transparency entry: 1248237367
- Sigstore integration time:
-
Permalink:
GoogleCloudPlatform/jupyter-extensions@4a7b783cc7f98ea4d1e87716bd5e29ae04f1cadb -
Branch / Tag:
refs/tags/google-cloud-jupyter-config-v0.0.12 - Owner: https://github.com/GoogleCloudPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a7b783cc7f98ea4d1e87716bd5e29ae04f1cadb -
Trigger Event:
push
-
Statement type: