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

    Notebook state interface

    interface NotebookState {
        documentId?: string;
        documentUri: string;
        isDatalayerNotebook: boolean;
        isInitialized: boolean;
        nbformat: unknown;
        notebookId: string;
        reset: () => void;
        selectedRuntime?: RuntimeWithCredits;
        serverUrl?: string;
        setDocumentId: (id: string) => void;
        setDocumentUri: (uri: string) => void;
        setIsDatalayerNotebook: (isDatalayer: boolean) => void;
        setIsInitialized: (initialized: boolean) => void;
        setNbformat: (nbformat: unknown) => void;
        setNotebookId: (id: string) => void;
        setRuntime: (runtime: RuntimeWithCredits) => void;
        setServerUrl: (url: string) => void;
        setTheme: (theme: "light" | "dark") => void;
        setToken: (token: string) => void;
        theme: "light" | "dark";
        token?: string;
    }
    Index

    Properties

    documentId?: string

    Unique document identifier for Datalayer notebooks

    documentUri: string

    VS Code document URI for outline tracking and identification

    isDatalayerNotebook: boolean

    Whether this is a Datalayer-hosted notebook

    isInitialized: boolean

    Whether the notebook has been initialized with required data

    nbformat: unknown

    Notebook format version

    notebookId: string

    Notebook identifier, defaults to "local-notebook"

    reset: () => void

    Resets all state to initial values

    selectedRuntime?: RuntimeWithCredits

    Currently selected runtime with optional credits information

    serverUrl?: string

    Datalayer server URL for API communication

    setDocumentId: (id: string) => void

    Updates the document identifier

    setDocumentUri: (uri: string) => void

    Updates the VS Code document URI

    setIsDatalayerNotebook: (isDatalayer: boolean) => void

    Updates whether the notebook is a Datalayer notebook

    setIsInitialized: (initialized: boolean) => void

    Updates the initialization state

    setNbformat: (nbformat: unknown) => void

    Updates the notebook format version

    setNotebookId: (id: string) => void

    Updates the notebook identifier

    setRuntime: (runtime: RuntimeWithCredits) => void

    Updates the selected runtime

    setServerUrl: (url: string) => void

    Updates the Datalayer server URL

    setTheme: (theme: "light" | "dark") => void

    Updates the theme mode

    setToken: (token: string) => void

    Updates the authentication token

    theme: "light" | "dark"

    Current theme mode for the notebook editor

    token?: string

    Authentication token for API requests