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-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!
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.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
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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334792214f0bb8d08b7b6ed96a43c6980cf0f512755df43b6a8e582fa487c543 |
|
MD5 | afface44ad5709170df917ef16b6a610 |
|
BLAKE2b-256 | 82eabe23da927588f7db044a1e9ba80284c5035ce0c13e2497f1b461b062d651 |
Hashes for backend.ai_integration_jupyter-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98599182f1cf7fac37d430a2891f3a9d632027519d20d5c33640af41db4dac1f |
|
MD5 | 99e6b27106539f299bfdc9f08d317e8e |
|
BLAKE2b-256 | c56d8cb0066534a4f6b5c45ed06bf965d4f0120167052980b52132fdd270d4da |