Jupyter Kernel handler

Constructors

Properties

_clientId: string
_connectionStatus: ConnectionStatus
_id: string
_info?: IInfoReply
_kernelConnection: null | IKernelConnection
_kernelManager: IManager
_kernelName: string
_kernelSpecManager: IManager
_kernelSpecName: string
_kernelType: string
_path: string
_ready: PromiseDelegate<void>
_session: ISessionConnection
_sessionId: string
_sessionManager: IManager

Accessors

Methods

  • Execute a code snippet

    Parameters

    • code: string

      The code snippet

    • options: {
          allowStdin?: boolean;
          iopubMessageHooks?: IOPubMessageHook[];
          model?: IOutputAreaModel;
          onExecutionPhaseChanged?: ((phaseOutput) => void);
          shellMessageHooks?: ShellMessageHook[];
          silent?: boolean;
          stopOnError?: boolean;
          storeHistory?: boolean;
          suppressCodeExecutionErrors?: boolean;
      } = {}

      Callbacks on IOPub messages and on reply message, outputs model to populate and execution options

      • Optional allowStdin?: boolean
      • Optional iopubMessageHooks?: IOPubMessageHook[]
      • Optional model?: IOutputAreaModel
      • Optional onExecutionPhaseChanged?: ((phaseOutput) => void)
      • Optional shellMessageHooks?: ShellMessageHook[]
      • Optional silent?: boolean
      • Optional stopOnError?: boolean
      • Optional storeHistory?: boolean
      • Optional suppressCodeExecutionErrors?: boolean

    Returns undefined | KernelExecutor

    The kernel executor

  • Serialize the kernel to JSON

    Returns {
        clientId: string;
        id: string;
        kernelInfo: undefined | IInfoReply;
        path: string;
        sessionId: string;
    }

    • clientId: string
    • id: string
    • kernelInfo: undefined | IInfoReply
    • path: string
    • sessionId: string