Common frontend components, server extension, and packages for GCP JupyterLab extensions
Common package for shared frontend components and Python server modules to be used across JupyterLab extensions.
Features
This module exposes two routes:
/gcp/v1/metadata- A subset of the GCE VM Metadata with AI Platform Notebook-specific keys pulled to the top-level to identify the ML framework installed on the machine./gcp/v1/proxy- A proxy-endpoint that accepts a base64-encoded Google API endpoint as a path and forwards the request to the decoded API service method. This is provided so that frontend code can issue API requests to the JupyterLab server, which will attach its machine credential to the request before forwarding it to the API service. This avoids the problem of requring end-user authentication at the UI, or passing the machine credential to the browser which is not supported.
Development
Follow the instructions from the root of the repository.
Install this package in editable mode by cd-ing into this directory
and running the ../dev-install.sh script.
When developing locally, in order to access a metadata server running on GCE VM, you will need to issue the following command to set up port forwarding. This will allow requests made locally to port 8889 to be forwarded to a real GCE metadata server. Do this in another terminal window since it will create an interactive SSH session.
gcloud compute ssh ${INSTANCE} --ssh-flag "-L 8889:metadata.google.internal:80"
Set the METADATA_SERVER environment variable to tell the server to use the forwarded address
export METADATA_SERVER="http://localhost:8889"
Metadata
Release files for gcp-jupyterlab-shared 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gcp_jupyterlab_shared-1.1.2.tar.gz | 8.7 kB | Without provenance | Details for gcp_jupyterlab_shared-1.1.2.tar.gz |
Security for gcp-jupyterlab-shared 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.