### Navigation

- index
- modules |
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »

# Module: `html.services.kernels.kernelmanager`

A kernel manager relating notebooks and kernels

Authors:

- Brian Granger

## 1 Class

class `IPython.html.services.kernels.kernelmanager.``MappingKernelManager`(**kwargs)

  Bases: `IPython.kernel.multikernelmanager.MultiKernelManager`

  A KernelManager that handles notebook mapping and HTTP error handling

  `cwd_for_path`(path)

    Turn API path into absolute OS path.

  `kernel_model`(kernel_id)

    Return a dictionary of kernel information described in the JSON standard model.

  `list_kernels`()

    Returns a list of kernel_id’s of kernels running.

  `shutdown_kernel`(kernel_id, now=False)

    Shutdown a kernel by kernel_id

  `start_kernel`(kernel_id=None, path=None, **kwargs)

    Start a kernel for a session an return its kernel_id.

    Parameters :

    kernel_id : uuid

    > The uuid to associate the new kernel with. If this is not None, this kernel will be persistent whenever it is requested.

    path : API path

    > The API path (unicode, ‘/’ delimited) for the cwd. Will be transformed to an OS path relative to root_dir.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »