Skip to main content

Backend.AI Integration for Jupyter

Project description

Backend.AI Integration for Jupyter

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.python.org/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:

Notebook Kernel Type Menu

More kernels will become available soon!

NOTE: Currently only Python-based kernels support cross-cell contexts (i.e., variables are kept across different notebook cells which is the default behavior of Jupyter notebooks you already know). With other language kernels, each cell is executed as a separate process, meaning that a new context is used whenever you execute a cell.

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.

Changes

0.3.2 (2018-11-09)

  • Update TensorFlow/PyTorch kernel versions.

0.3.1 (2018-09-23)

  • This was a technical release to fix dependencies.

0.3.0 (2018-09-23)

  • Upgrade backend.ai-client to v1.4 series.

0.2.5 (2018-06-19)

  • Support Jupyter notebook 5.0 or higher which has migrated to Tornado 5.0+.

  • Upgrade backend.ai-client to v1.3.4 or higher to keep pace with Jupyter notebook 5.0 support.

0.2.4 (2018-03-20)

  • Upgrade backend.ai-client to v1.3 series.

0.2.3 (2018-03-12)

  • Upgrade backend.ai-client to v1.2 series.

0.2.2 (2018-01-05)

  • Add support for Python 3.5 as well.

  • Adapt to the latest API with explicit modes in the execution loop.

  • Upgrade the client library to v1.1.5 release.

0.2.1 (2017-10-24)

  • Adapt to the latest API with explicit run IDs per execution.

0.2.0 (2017-09-19)

  • Change the project name to "Backend.AI Jupyter Integration" and the import path to "ai.backend.integration".

  • This version is now paired with the Backend.AI Client for Python v1.0.0 release.

  • Add support for Python 3.5 (along with the new Backend.AI client library).

  • README is provided in ReST to remove dev-dependency to pypandoc.

0.1.3 (2017-09-19)

  • This is a transitional release to make notice of package renaming on PyPI.

  • Add C/C++/Java kernels.

0.1.2 (2017-04-07)

  • Add PyTorch kernels.

0.1.1 (2017-03-29)

  • Add syntax highlighting support.

0.1.0 (2017-03-16)

  • Initial preview release.

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.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: backend.ai-integration-jupyter-0.3.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.4

File hashes

Hashes for backend.ai-integration-jupyter-0.3.2.tar.gz
Algorithm Hash digest
SHA256 cbaa2dca7cf7cecea9d62b2a5253d2b7846cb3620e155adceab5d881ba618f5b
MD5 5c68816b73d528518b0d3cd159500b1b
BLAKE2b-256 8273df406334baf629cecd559e212dd200a24d9b34aa810832dbd7426bf098ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backend.ai_integration_jupyter-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.4

File hashes

Hashes for backend.ai_integration_jupyter-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2470cf87efddfa7d8de48eec6477973570b1ef7f28a89f57f2ffffe98571e7b0
MD5 eef7bad694aad95e0c1dd88f1a9f207c
BLAKE2b-256 90b9d2fc222128dd20ad409dc6b23733b057b93504fdfd4298a24ff1ea7923b4

See more details on using hashes here.

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