@nteract/kernel-relay
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@nteract/kernel-relay

This package provides a GraphQL API for managing communication between a Jupyter kernel and front-end clients. The package allows users to control and monitor kernels.

Through GraphQL queries and mutations, the API enables the user to launch kernels, subscribe to the status of a kernel, send Jupyter messages from a client to a kernel, and more.

Installation

$ yarn add @nteract/kernel-relay
$ npm install --save @nteract/kernel-relay

Usage

The query example below showcases how to use the GraphQL API to get the status of a kernel.

# Query
query Kernel {
    status(kernelId: "my-kernel-id") {
        displayName,
        status
    }
}
# Response
{
    data: {
        kernel: {
            displayName: "Python 3"
            status: "idle"
        }
    }
}

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and, if possible, add the pkg:kernel-relay label.

License

BSD-3-Clause

Readme

Keywords

Package Sidebar

Install

npm i @nteract/kernel-relay

Weekly Downloads

0

Version

2.0.2

License

BSD-3-Clause

Unpacked Size

10 MB

Total Files

10

Last publish

Collaborators

  • hydrosquall
  • benabel
  • alexandercbooth
  • benrussert
  • mpacer
  • theengineear
  • yuvipanda
  • rgbkrk
  • lgeiger
  • ivanov
  • captainsafia
  • peggyrayzis
  • jdetle
  • hasch
  • willingc
  • stormpython
  • crystalline-cat
  • emeeks