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
File details
Details for the file google-cloud-jupyter-config-0.0.4.tar.gz.
File metadata
- Download URL: google-cloud-jupyter-config-0.0.4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
135e2d9865b4b9e7c188eb84d4c7512cce41dd725b5cb3794615ec64c7dbc4f9
|
|
| MD5 |
2452b5370e703f46b0db1e388217af32
|
|
| BLAKE2b-256 |
8584c0448b8c30cbb8c46bf7e1f44eeef6e00a6a11b8e327a87b58f738274066
|