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

2.1.9 • Public • Published

@nteract/fs-kernels

This package contains functions for launching a Jupyter kernel, getting stats on it, and shutting it down.

Installation

$ yarn add @nteract/fs-kernels
$ npm install --save @nteract/fs-kernels

Usage

The example below shows how we can use this package to:

  • create a new kernel (new Kernel(kernelName))
  • launch and connect to the kernel (kernel.launch())
  • retrieve usage stats about the kernel's process (kernel.getUsage())
  • terminate the kernel (kernel.shutdown()).
import Kernel from "@nteract/fs-kernels";

export default async () => {
  const kernelName = "python3";
  const kernel = new Kernel(kernelName);
  await kernel.launch();
  console.log(kernel.getUsage());
  await kernel.shutdown();
};

Documentation

You can view the reference documentation for @nteract/fs-kernels 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, if possible, add the pkg:fs-kernels label.

License

BSD-3-Clause

Readme

Keywords

Package Sidebar

Install

npm i @nteract/fs-kernels

Weekly Downloads

1

Version

2.1.9

License

BSD-3-Clause

Unpacked Size

738 kB

Total Files

29

Last publish

Collaborators

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