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

    Manages notebook controllers with a main selector and runtime-specific controllers.

    Implements

    • Disposable
    Index

    Constructors

    Properties

    _activeKernels: Map<string, WebSocketKernelClient> = ...
    _authProvider: SDKAuthProvider
    _context: ExtensionContext
    _controllers: Map<string, NotebookController> = ...
    _disposed: boolean = false
    _executionOrder: number = 0
    _kernelBridge: KernelBridge
    _notebookRuntimes: Map<string, Runtime> = ...
    _onRuntimeCreated: EventEmitter<Runtime> = ...
    _runtimes: Map<string, Runtime> = ...
    _sdk: DatalayerClient
    _selectingRuntime: boolean = false
    onRuntimeCreated: Event<Runtime> = ...

    Methods

    • Creates the main "Datalayer Platform" controller. This controller acts as an entry point for runtime selection. When selected, it immediately shows the runtime picker.

      Returns void

    • Executes cells with the specified runtime.

      Parameters

      • cells: NotebookCell[]

        Cells to execute

      • notebook: NotebookDocument

        The notebook document

      • runtime: Runtime

        The runtime to use

      • OptionalexecutingController: NotebookController

        The controller that is actually executing (might be Platform or Runtime controller)

      Returns Promise<void>

    • Refreshes all controllers based on current authentication and available runtimes. Creates controllers for existing runtimes that don't have controllers yet. Removes controllers for runtimes that no longer exist.

      Returns Promise<void>

    • Selects or switches a runtime for a specific notebook. This can be called anytime, even if Platform controller is already selected.

      Parameters

      • notebook: NotebookDocument

        The notebook to select runtime for

      Returns Promise<void>

    • Shows runtime selector and switches to selected runtime. This is the main method for switching runtimes.

      Parameters

      • notebook: NotebookDocument

      Returns Promise<void>