forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspawnteract.d.ts
More file actions
39 lines (38 loc) · 2.07 KB
/
spawnteract.d.ts
File metadata and controls
39 lines (38 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
declare module 'spawnteract' {
import * as child_process from 'child_process';
interface LaunchSpecSpawnResult {
spawn: child_process.ChildProcess;
connectionFile: string;
config: any;
kernelSpec: any;
}
/**
* Launch a kernel for a given kernelSpec
* @public
* @param {object} kernelSpec describes a specific
* kernel, see the npm
* package `kernelspecs`
* @param {object} [spawnOptions] options for [child_process.spawn]{@link https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options}
* @return {object} spawnResults
* @return {ChildProcess} spawnResults.spawn spawned process
* @return {string} spawnResults.connectionFile connection file path
* @return {object} spawnResults.config connectionConfig
*
*/
export function launchSpec(kernelSpec: any, spawnOptions: child_process.SpawnOptions): Promise<LaunchSpecSpawnResult>;
/**
* Launch a kernel by name
* @public
* @param {string} kernelName
* @param {object[]} [specs] array of kernelSpec
* objects to look through.
* See the npm package
* `kernelspecs`
* @param {object} [spawnOptions] options for [child_process.spawn]{@link https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options}
* @return {object} spawnResults
* @return {ChildProcess} spawnResults.spawn spawned process
* @return {string} spawnResults.connectionFile connection file path
* @return {object} spawnResults.config connectionConfig
*/
export function launch(kernelName: string, spawnOptions: child_process.SpawnOptions, specs): Promise<LaunchSpecSpawnResult>;
}