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

    Interface InitMessage

    Initialize the webview with document data

    interface InitMessage {
        body: {
            documentId?: string;
            documentUri?: string;
            isDatalayerNotebook?: boolean;
            notebookId?: string;
            serverUrl?: string;
            theme?: "light" | "dark";
            token?: string;
            untitled?: boolean;
            value: Uint8Array;
        };
        type: "init";
    }
    Index

    Properties

    Properties

    body: {
        documentId?: string;
        documentUri?: string;
        isDatalayerNotebook?: boolean;
        notebookId?: string;
        serverUrl?: string;
        theme?: "light" | "dark";
        token?: string;
        untitled?: boolean;
        value: Uint8Array;
    }

    Initialization payload

    Type Declaration

    • OptionaldocumentId?: string

      Datalayer cloud document ID

    • OptionaldocumentUri?: string

      Document URI for logging

    • OptionalisDatalayerNotebook?: boolean

      Whether this is a Datalayer cloud notebook

    • OptionalnotebookId?: string

      Datalayer cloud notebook ID (also used for webview reuse detection)

    • OptionalserverUrl?: string

      Jupyter server URL

    • Optionaltheme?: "light" | "dark"

      VS Code theme

    • Optionaltoken?: string

      Authentication token for Jupyter server

    • Optionaluntitled?: boolean

      Whether this is an untitled document

    • value: Uint8Array

      Serialized notebook content

    type: "init"

    Message type discriminator