Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Latest commit

 

History

History
17 lines (12 loc) · 1.61 KB

README.md

File metadata and controls

17 lines (12 loc) · 1.61 KB

Docker Kernel Provider

NOTE: This repository is experimental and undergoing frequent changes!

The Docker Kernel Provider package provides support necessary for launching and managing Jupyter kernels within Docker or Docker Swarm clusters. This is accomplished via two classes:

  1. DockerKernelProvider is invoked by the application to locate and identify specific kernel specificiations (kernelspecs) that manage kernel lifecycles within Docker configurations.
  2. Either of DockerSwarmKernelLifecycleManager or DockerKernelLifecycleManager depending on the content of the docker_kernel.json file. One of these classes is instantiated by the RemoteKernelManager to peform the kernel lifecycle management. This class performs post-launch discovery of the kernel container and handles its termination via the docker-py python API.

Installation

DockerKernelProvider is a pip-installable package:

pip install docker_kernel_provider

Docker Kernel Specifications

Criteria for discovery of the kernel specification via the DockerKernelProvider is that a docker_kernel.json file exist in a sub-directory of kernels.