@nteract/messaging

Messaging mechanics for nteract apps (jupyter spec)

Stats

StarsIssuesVersionUpdatedCreatedSize
@nteract/messaging
7.0.193 months ago5 years agoMinified + gzip package size for @nteract/messaging in KB

Readme

@nteract/messaging

This package contains type definitions and helper functions for interacting with the Jupyter Messaging Protocol. These functions can be used to create different types of request and response messages.

Installation

$ yarn add @nteract/messaging
$ npm install --save @nteract/messaging

Usage

The example below shows how we can use the createMessage function in this package to create an inspect_request Jupyter message.

import { createMessage } from "@nteract/messaging";

const message = createMessage("inspect_request", {
  code: "string.for",
  cursor_pos: 10,
  detail_level: 1
});

Documentation

You can view the reference documentation for @nteract/messaging in the package docs.

Support

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

License

BSD-3-Clause

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.