Datalayer VS Code Extension - v0.0.17
    Preparing search index...
    • Creates a cloud notebook in a Datalayer space.

      Parameters

      • params: {
            description?: string;
            initialCells?: unknown[];
            name: string;
            spaceId?: string;
            spaceName: string;
        }

        Notebook creation parameters (name, description, space, cells).

        • Optionaldescription?: string

          Optional description for the notebook.

        • OptionalinitialCells?: unknown[]

          Optional array of initial notebook cells.

        • name: string

          Display name for the notebook.

        • OptionalspaceId?: string

          Optional space identifier for direct lookup.

        • spaceName: string

          Name of the target Datalayer space.

      • context: {
            auth?: unknown;
            datalayer?: unknown;
            extras?: {
                openCloudDocument?: (
                    document: unknown,
                    spaceName: string,
                    documentType: "notebook" | "lexical",
                ) => Promise<void>;
            };
        }

        Context with Datalayer client, auth, and cloud document callbacks.

        • Optionalauth?: unknown

          Authentication state for the current user.

        • Optionaldatalayer?: unknown

          Datalayer client instance for API calls.

        • Optionalextras?: {
              openCloudDocument?: (
                  document: unknown,
                  spaceName: string,
                  documentType: "notebook" | "lexical",
              ) => Promise<void>;
          }

          Additional callbacks and utilities.

          • OptionalopenCloudDocument?: (
                document: unknown,
                spaceName: string,
                documentType: "notebook" | "lexical",
            ) => Promise<void>

            Callback to open the created notebook.

      • OptionalchatMessage: string

        Optional message to include in the result for chat feedback.

      Returns Promise<CreateDocumentResult>

      Result with notebook URI and metadata or error details.