backend.ai-integration-jupyter

Jupyter kernel integration for Backend.AI

Github stars Tracking Chart







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.

Main metrics

Overview
Name With Ownerlablup/backend.ai-integration-jupyter
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2017-03-16 02:47:39
Pushed At2018-11-09 14:54:07
Last Commit At2018-11-09 23:53:34
Release Count7
Last Release Name0.3.2 (Posted on 2018-11-09 23:53:48)
First Release Name0.2.2 (Posted on 2018-01-05 18:27:06)
用户参与
Stargazers Count10
Watchers Count16
Fork Count1
Commits Count44
Has Issues Enabled
Issues Count7
Issue Open Count3
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
人工智能

Backend.AI

backend.ai的元存储库。Backend.AI是一个简化的后端API服务器,托管异构编程语言和流行的AI框架。(M...
人工智能

backend.ai-kernels

Backend.AI runtime container images with REPL / batch daemon...
JavaScript

backend.ai-media

Auxiliary Javascript libraries for Backend.AI front-end deve...
人工智能

backend.ai-hook

Private hook library to override library-level functions ins...
人工智能

backend.ai-jail

A programmable security sandbox for Backend.AI kernels
未分类

backend.ai

Meta-repository for backend.ai
人工智能

backend.ai-kernels

Backend.AI runtime container images with REPL / batch daemon...