# spawnteract **Repository Path**: mirrors_mathisonian/spawnteract ## Basic Information - **Project Name**: spawnteract - **Description**: :children_crossing: Spawn Jupyter Kernels - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spawnteract Spawn yourself a Jupyter kernel backend. ``` npm install --save spawnteract ``` ## Usage ```javascript const spawnteract = require('spawnteract') spawnteract.launch('python3').then(kernel => { // Returns // kernel.spawn <-- The running process, from child_process.spawn(...) // kernel.connectionFile <-- Connection file path // kernel.config <-- Connection information from the file // Print the ip address and port for the shell channel console.log(kernel.config.ip + ':' + kernel.config.shell_port); }) ``` You'll need to close `kernel.spawn` yourself as well as delete `kernel.connectionFile` from disk when finished: ```js function cleanup(kernel) { kernel.spawn.kill(); fs.unlink(kernel.connectionFile); } ``` You will probably end up wanting to use this with [enchannel-zmq-backend](https://github.com/nteract/enchannel-zmq-backend).