Skip to main content

Backend.AI Integration for Jupyter

Project description

Your Jupyter notebooks are running on the Backend.AI Cloud!

Migration Guide for v0.1.x “Sorna” Users

Now we use the v1.0.0 release of Backend.AI Client for Python <https://pypi-hypernode.com/pypi/backend.ai-client>.

To use the latest version, please remove all existing “Sorna” kernel configurations and re-install them.

$ python -m sorna.integration.jupyter.install --clean-only
Removing existing Sorna kernel: C11 on Sorna
...

$ pip uninstall sorna-jupyter-integration
...

$ pip install backend.ai-integration-jupyter
...

$ python -m ai.backend.integration.jupyter.install
Installing Backend.AI Jupyter kernel spec: Python 3 on Backend.AI
...

Note that you also need to reconfigure your existing notebooks to use the new kernels. This is a safe operation – you can change the backend kernel without losing/modifying the content of notebooks.

Installation and Usage

First, grab your API keypair in Backend.AI Cloud.

$ pip install jupyter backend.ai-integration-jupyter
$ python -m ai.backend.integration.jupyter.install
$ export BACKEND_ACCESS_KEY=...
$ export BACKEND_SECRET_KEY=...
$ jupyter notebook

Then you will see Backend.AI kernels in the new notebook menu:

nbmenu-preview.png

More kernels will become available soon!

Development

Add --sys-prefix argument to tell the installer to recognize editable installation under your virtual environment.

$ python -m venv venv
$ source venv/bin/activate
$ pip install jupyter
$ pip install -e .  # editable installation
$ python -m ai.backend.integration.jupyter.install --sys-prefix
$ export BACKEND_ACCESS_KEY=...
$ export BACKEND_SECRET_KEY=...
$ jupyter notebook

Uninstall

To list and uninstall existing kernelspecs registered to Jupyter, use jupyter-kernelspec command.

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

backend.ai-integration-jupyter-0.2.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file backend.ai-integration-jupyter-0.2.5.tar.gz.

File metadata

File hashes

Hashes for backend.ai-integration-jupyter-0.2.5.tar.gz
Algorithm Hash digest
SHA256 62a47ed472da070ab21a6f3fb4603f8a5669af853b7bd1e905e21ade9c6e9203
MD5 16846b0e6376de0aace6e375a62e112b
BLAKE2b-256 5c4be210470bc8f7a7b7a8a48c0b986e5af06e8e59bf32a33b68cec8b29b6ed4

See more details on using hashes here.

Provenance

File details

Details for the file backend.ai_integration_jupyter-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for backend.ai_integration_jupyter-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1ac37b03698022f8357c1ca7abd7e81b30210783a2f437ccb2c853078c1ef5
MD5 19d92b40c57a6c55aea25be809b0d9b9
BLAKE2b-256 e65822dda7d734e9cb716edfb32fd89c45b36d9f913fb92744dc26f4372bf554

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page