You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

spawnteract

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawnteract

Proving out an API for spawning Jupyter kernels

0.0.4
Source
npmnpm
Version published
Weekly downloads
63
103.23%
Maintainers
1
Weekly downloads
 
Created
Source

Spawnteract

Spawn yourself a Jupyter kernel backend.

npm install --save spawnteract

Usage

const spawnteract = require('spawnteract')

spawnteract.launch('python3').then(kernel => {
  // Returns
  // kernel.spawn <-- The running process, from child_process.spawn(...)
  // kernel.connFile <-- Connection file path
  // kernel.config <-- Connection information from the file
})

You'll need to close kernel.spawn yourself as well as delete kernel.connFile from disk when finished.

You will probably end up wanting to use this with enchannel-zmq-backend.

FAQs

Package last updated on 22 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts