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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for backend.ai-integration-jupyter-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3e8af63927841de324878487a16ccd65ef0508a34b5c1e9d2d05b500a5272ef |
|
MD5 | d6bc20bf6ca07f686ec585af0547e16f |
|
BLAKE2b-256 | 9d2da0bd646967d643d68134b55c119b38fa7f8aec32ea548fa8dc86f83d0c95 |
Hashes for backend.ai_integration_jupyter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5258d633a7c6e98e7dd80c4bcf019bbb1b7654bc6f7cffb01fdb872941eba860 |
|
MD5 | 4c39be29245e248945c2e10d07958101 |
|
BLAKE2b-256 | f17753b3d3ea400223b7d30ca8bbb7804b39b449ded1488b23fab9a4703be25d |