Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rx-jupyter

captainsafia119.6kBSD-3-Clause5.5.21TypeScript support: included

RxJS 5 bindings for the Jupyter Notebook API

jupyter, rxjs, notebook, api

readme

rx-jupyter

This package is a ReactiveX wrapper around the Jupyter Server API. rx-jupyter can help you query local and remote Jupyter Server instances using Jupyter's Services APIs. Also, rx-jupyter integrates responses seamlessly with RxJS's functional tooling.

Roadmap

Primary coverage of the [Jupyter Server API]:

  • <input checked="" disabled="" type="checkbox"> Contents
    • <input checked="" disabled="" type="checkbox"> Checkpoints
  • <input checked="" disabled="" type="checkbox"> Kernels
  • <input checked="" disabled="" type="checkbox"> Kernelspecs
  • <input checked="" disabled="" type="checkbox"> Sessions
  • <input checked="" disabled="" type="checkbox"> Terminals

Optional coverage:

  • <input disabled="" type="checkbox"> Config
  • <input disabled="" type="checkbox"> nbconvert
  • <input disabled="" type="checkbox"> spec.yaml /api/spec.yaml

Installation

$ yarn add rx-jupyter
$ npm install --save rx-jupyter

Usage

The example below shows how we can use this package to get the version of the Jupyter server API our endpoint is running.

import jupyter from "rx-jupyter";
import { of } from "rxjs";
import { mergeMap, catchError } from "rxjs/operators";

const apiVersion = jupyter.apiVersion({
  endpoint: "https://myjupyterendpoint.com",
  crossDomain: true
});
apiVersion.pipe(
  mergeMap(apiVersion => of(apiVersionFulfilled({ apiVersion }))),
  catchError(error => of(apiVersionFailed({ error })))
);

Documentation

You can view the reference documentation for rx-jupyter 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:rx-jupyter label.

License

BSD-3-Clause