Class: Kernel

Kernel(config)

Implements a Javascript kernel for IPython/Jupyter.

Constructor

new Kernel(config)

Parameters:
Name Type Description
config Config Kernel configuration
Source:

Members

connection :Object

Configuration provided by IPython
Type:
  • Object
Source:

controlSocket :module:jmp~Socket

Control socket
Type:
  • module:jmp~Socket
Source:

executionCount :Number

Number of visible execution requests
Type:
  • Number
Source:

handlers :Object.<String, function()>

Collection of message handlers that links a message type with the method handling the response
Type:
  • Object.<String, function()>
Source:
See:
  • module:handler_v4
  • module:handler_v5

hbSocket :module:zmq~Socket

HeartBeat socket
Type:
  • module:zmq~Socket
Source:

hideExecutionResult :Boolean

Flag to hide execution results
Type:
  • Boolean
Source:

hideUndefined :Boolean

Flag to hide undefined results
Type:
  • Boolean
Source:

iopubSocket :module:jmp~Socket

IOPub socket
Type:
  • module:jmp~Socket
Source:

kernelInfoReply :object

Content of kernel_info_reply message
Type:
  • object
Source:

(nullable) lastActiveOnReply :function

lastActiveOnReply is the last unused onReply callback (workaround for frontends that don't set input_reply.parent_header)
Type:
  • function
Source:

onReplies :object

onReply callbacks indexed by input_request.header.msg_id
Type:
  • object
Source:

protocolVersion :String

IPython/Jupyter protocol version
Type:
  • String
Source:

session :module:nel~Session

Javascript session
Type:
  • module:nel~Session
Source:

shellSocket :module:jmp~Socket

Shell socket
Type:
  • module:jmp~Socket
Source:

startupCallback :StartupCB

Callback run at session startup (this callback can be used to setup the kernel session; e.g. to register a require extensions).
Type:
Source:

startupScript :String

Path to a Javascript file to be run on session startup. Path to a folder also accepted, in which case all the Javascript files in the folder will be run.
Type:
  • String
Source:

stdinSocket :module:jmp~Socket

Stdin socket
Type:
  • module:jmp~Socket
Source:

Methods

destroy(destroyCBopt)

Destroy kernel
Parameters:
Name Type Attributes Description
destroyCB DestroyCB <optional>
Callback run after the session server has been killed and before closing the sockets
Source:

restart(restartCBopt)

Restart kernel
Parameters:
Name Type Attributes Description
restartCB RestartCB <optional>
Callback run after the session server has been restarted
Source: