Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Client for local Python kernels using direct ZMQ communication. Works with environments that only have ipykernel installed (no jupyter-server needed).

    Index

    Constructors

    Methods

    • Execute code on the kernel.

      Parameters

      • code: string

        The code to execute.

      Returns Promise<void>

      Error if kernel not started.

    • Get the underlying kernel connection.

      Returns IKernelConnection

      The JupyterLab kernel connection instance, or undefined if not started.

    • Get kernel information from the running kernel.

      Returns Promise<unknown>

      Kernel information object.

      Error if kernel not started.

    • Restarts the kernel by killing the current process and starting a new one. Skips Jupyter shutdown API and uses direct SIGTERM since local kernels communicate via ZMQ rather than through a Jupyter server.

      Returns Promise<void>

    • Start the local kernel by spawning ipykernel and connecting via ZMQ.

      Returns Promise<void>

      Error if the client has been disposed or if kernel type is jupyter-server.