Registry /
gcp / google-cloud-jupyter-config
Install & Compatibility
Where this runs
tested against v0.0.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 67.5MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 8.0s · import 0.000s · 65MB
67MB installed
● package 67MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
project
✓ from google.cloud.jupyter_config import project
✗ from jupyter_config import project
This quickstart demonstrates how to retrieve the Google Cloud project ID and an access token using the library. These functions attempt to read from environment variables (e.g., `GCLOUD_PROJECT`), the `gcloud` CLI configuration, and the Google Cloud metadata server (if running on GCP).
import os
from google_cloud_jupyter_config import project
from google_cloud_jupyter_config import token
# Ensure gcloud CLI is configured, or environment variables are set
# For example, by running 'gcloud auth application-default login' or setting GCLOUD_PROJECT
project_id = project.get_project_id()
if project_id:
print(f"Google Cloud Project ID: {project_id}")
else:
print("Could not retrieve Google Cloud Project ID. Is gcloud SDK configured or GCLOUD_PROJECT env var set?")
access_token = token.get_access_token()
if access_token:
print(f"Google Cloud Access Token (first 10 chars): {access_token[:10]}...")
else:
print("Could not retrieve Google Cloud Access Token. Is gcloud SDK authenticated?")
Debug
Known issues
gotchaPrior to version 0.0.12, Jupyter sessions integrated with this library could experience authentication token expiration during long-running connections, leading to interrupted workflows.fixUpgrade to version 0.0.12 or later (`pip install --upgrade google-cloud-jupyter-config`) to ensure tokens are refreshed automatically.
affects: <0.0.12
gotchaThe library heavily relies on the Google Cloud SDK (gcloud CLI) being installed and correctly configured and authenticated on the system where Jupyter is running. Without it, many utility functions may return `None` or fail.fixEnsure the Google Cloud SDK is installed and initialized (e.g., `gcloud init`). Authenticate with `gcloud auth login` or `gcloud auth application-default login` for appropriate credentials.
affects: All versions
deprecatedThe root `google-cloud` PyPI package is deprecated. Users should install product-specific client libraries like `google-cloud-jupyter-config` instead of the umbrella package.fixAlways install specific `google-cloud-*` packages like `google-cloud-jupyter-config` directly, rather than the deprecated `google-cloud` package.
affects: N/A (affects `google-cloud` not this specific library)
Upgrade
Version history
0.0.13latest on PyPI · released May 20, 2026
Audit
Dependencies
google-cloud-sdkrequiredThis library relies on the `gcloud` command-line tool for configuration retrieval. While not a direct Python dependency, it's a functional requirement for full utility.
Python >=3.8requiredMinimum Python version required.