google-cloud-jupyter-config


Namegoogle-cloud-jupyter-config JSON
Version 0.0.10 PyPI version JSON
download
home_pagehttps://github.com/GoogleCloudPlatform/jupyter-extensions/tree/master/google-cloud-jupyter-config
SummaryJupyter configuration utilities using gcloud
upload_time2024-05-22 17:29:53
maintainerNone
docs_urlNone
authorGoogle, Inc.
requires_python>=3.8
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://cloud.google.com/sdk/gcloud).

## 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`](https://traitlets.readthedocs.io/en/latest/config-api.html#traitlets.config.Config)
object to connect to a kernel gateway URL managed by Google.

## Prerequisites

Install both Jupyter and [gcloud](https://cloud.google.com/sdk/docs/install).

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:

```sh
gcloud auth login
```

... and configure your project and region:

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

## Install

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

```sh
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:

```sh
jupyter lab --generate-config
```

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

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GoogleCloudPlatform/jupyter-extensions/tree/master/google-cloud-jupyter-config",
    "name": "google-cloud-jupyter-config",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Google, Inc.",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/34/69/ad1636b6d76f6c8feab01aa799f17aae092363fcd54624da65e024bc6270/google_cloud_jupyter_config-0.0.10.tar.gz",
    "platform": null,
    "description": "# Notebook server configuration using the Google Cloud SDK\n\nThis package provides Python classes that can be used in the Jupyter config file\n(e.g. `~/.jupyter/jupyter_lab_config.py`) in order to fill in some configuration\nusing the Google Cloud SDK's [`gcloud` tool](https://cloud.google.com/sdk/gcloud).\n\n## Included features\n\nThis package provides utility methods to look up any configuration options stored\nin the active gcloud config, in particular the project and region.\n\nAdditionally, this provides a utility method to update a given\n[`Config`](https://traitlets.readthedocs.io/en/latest/config-api.html#traitlets.config.Config)\nobject to connect to a kernel gateway URL managed by Google.\n\n## Prerequisites\n\nInstall both Jupyter and [gcloud](https://cloud.google.com/sdk/docs/install).\n\nFor the kernel gateway feature, you will need an installation of Jupyter that uses the\n`jupyter_server` project and the version of `jupyter_server` you have installed needs to be\nat least version `2.4.0`.\n\nYou will also need to log in to gcloud:\n\n```sh\ngcloud auth login\n```\n\n... and configure your project and region:\n\n```sh\ngcloud config set core/project ${PROJECT}\ngcloud config set compute/region ${REGION}\n```\n\n## Install\n\nClone this repository, and from this directory run the following:\n\n```sh\npip install .\n```\n\n## Setup\n\nIf you do not already have a Jupyter config file (e.g. `~/.jupyter/jupyter_lab_config.py`),\nthe first generate one with the following command:\n\n```sh\njupyter lab --generate-config\n```\n\nThe open your config file and add the following two lines to the end:\n\n```py\nimport google.cloud.jupyter_config\ngoogle.cloud.jupyter_config.configure_gateway_client(c)\n```\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Jupyter configuration utilities using gcloud",
    "version": "0.0.10",
    "project_urls": {
        "Homepage": "https://github.com/GoogleCloudPlatform/jupyter-extensions/tree/master/google-cloud-jupyter-config"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3469ad1636b6d76f6c8feab01aa799f17aae092363fcd54624da65e024bc6270",
                "md5": "cc77f796575b42622734a580128a7ff8",
                "sha256": "a4ff98f504bafc017fc8b90da1fdbf73fe22ccead58bc977ae6b0b3bb2f41246"
            },
            "downloads": -1,
            "filename": "google_cloud_jupyter_config-0.0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "cc77f796575b42622734a580128a7ff8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9661,
            "upload_time": "2024-05-22T17:29:53",
            "upload_time_iso_8601": "2024-05-22T17:29:53.281108Z",
            "url": "https://files.pythonhosted.org/packages/34/69/ad1636b6d76f6c8feab01aa799f17aae092363fcd54624da65e024bc6270/google_cloud_jupyter_config-0.0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-22 17:29:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GoogleCloudPlatform",
    "github_project": "jupyter-extensions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "google-cloud-jupyter-config"
}
        
Elapsed time: 0.51637s