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

    Class DatalayerJupyterServerProvider

    Datalayer Jupyter Server Provider. Provides runtime servers + creation commands in the kernel picker.

    Architecture (based on Colab):

    • Implements JupyterServerProvider to provide list of active runtimes
    • Implements JupyterServerCommandProvider to provide "Create GPU/CPU" commands
    • Creates a JupyterServerCollection that appears as "Datalayer" in kernel picker

    Implements

    • JupyterServerProvider
    • JupyterServerCommandProvider
    • Disposable
    Index

    Constructors

    Accessors

    • get onDidChangeServers(): Event<void>

      Event that fires when the server list changes due to runtime creation or authentication state changes.

      Returns Event<void>

    Methods

    • Disposes all resources including auth listener, server collection, and event emitter.

      Returns void

    • Handles command execution when user clicks a runtime creation command in the kernel picker.

      Parameters

      • command: JupyterServerCommand

        The command selected by the user.

      • _token: CancellationToken

        Cancellation token for the operation.

      Returns Promise<JupyterServer>

      Newly created runtime server or undefined if cancelled.

    • Provides commands that appear below servers in the kernel picker for creating new runtimes.

      Parameters

      • _value: string

        Filter string from the kernel picker search.

      • _token: CancellationToken

        Cancellation token for the operation.

      Returns Promise<JupyterServerCommand[]>

      Array of available runtime creation commands.

    • Provides the list of Datalayer runtime servers for the Jupyter extension kernel picker.

      Parameters

      • _token: CancellationToken

        Cancellation token for the operation.

      Returns Promise<JupyterServer[]>

      Array of available Datalayer runtime servers.

    • Resolves connection information for a Datalayer runtime server when selected by the user.

      Parameters

      • server: JupyterServer

        Server to resolve connection information for.

      • _token: CancellationToken

        Cancellation token for the operation.

      Returns Promise<JupyterServer>

      Resolved server with connection details.