Members
context :Context
Script context
Type:
kernel :module:child_process~ChildProcess
Kernel instance
Type:
- module:child_process~ChildProcess
- Source:
onMessage :onMessageCallback
Callback to handle kernel messages
Type:
- Source:
Methods
dispose()
Dispose the messaging test engine
- Source:
init(done)
Initialise the messaging test engine
Parameters:
Name | Type | Description |
---|---|---|
done |
function |
- Source:
parseCommandArguments() → {module:jp-kernel~Config}
Parse command arguments
- Source:
Returns:
Kernel config
- Type
- module:jp-kernel~Config
run(code, onMessageopt) → {Message}
Send kernel an execution request
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
code |
string | Code to be run by kernel | |
onMessage |
onMessageCallback |
<optional> |
Kernel message handler |
- Source:
Returns:
message IPython/Jupyter message
- Type
- Message
Type Definitions
Context
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
context |
Properties
|
Message
IPython/Jupyter message
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
message.idents |
Array |
<optional> |
Identities |
message.header |
Object |
<optional> |
Header |
message.parent_header |
Object |
<optional> |
Parent header |
message.metadata |
Object |
<optional> |
Message metadata |
message.content |
Object |
<optional> |
Message content |
- Source:
onMessageCallback(socketName, message)
Callback to handle kernel messages
Parameters:
Name | Type | Description |
---|---|---|
socketName |
string | Socket name |
message |
Message | IPython/Jupyter message |
- Source: