> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI-Assisted Notebook Development

> Create and connect local Jupyter notebooks to remote Wherobots compute with automatic kernel selection. Create, edit, and execute spatial notebooks using natural language prompts within your editor.

<Badge color="purple">Public Preview</Badge>

The Wherobots VS Code Extension provides Jupyter integration that connects your local notebooks
to remote Wherobots compute with automatic kernel selection, all within your editor.

<Accordion title="TL;DR — Quickstart" icon="stopwatch">
  1. Install the [Wherobots VS Code Extension](/develop/agentic-tools) and set your API key via `Wherobots: Set API Key` in the Command Palette.
  2. Run `Wherobots: Create Workspace` from the Command Palette and click **Create & Start**.
  3. Open **Chat** in **Agent** mode with a high-performance model (e.g. Gemini Pro, Claude Opus, or GPT Codex).
  4. Warm up the MCP server by asking a simple question, e.g. *List the available tables in wherobots\_pro\_data.*
  5. Prompt the AI assistant to build and run your notebook, e.g.:
     > *Create a notebook that finds all parks within 1 mile of subway stations in Manhattan using Overture Maps. Run each cell.*
  6. Allow the Wherobots MCP server if prompted.

  <Note>
    The Wherobots MCP Server requires a [Professional or Enterprise](/get-started/organization-management/organization-editions) Organization Edition. Community Edition Organizations do not have access to the Wherobots MCP server.
  </Note>
</Accordion>

## Benefits of AI-assisted notebook development

<Note>
  The steps below use GitHub Copilot Chat in VS Code. Other editors have an equivalent feature — Cursor (Chat / Composer), Windsurf (Cascade), Kiro (AI Chat), Positron (Copilot Chat), Trae (Side chat).

  Consult your editor's documentation for details on accessing chat, switching modes, and selecting models.
</Note>

AI-assisted notebook development with the Wherobots VS Code Extension and your editor's AI assistant offers several key benefits:

<AccordionGroup>
  <Accordion title="Faster notebook creation" icon="bolt">
    Generate code, data loading, and analysis steps with natural language prompts.

    Work within your editor without needing to switch contexts between different tools for notebook development and Wherobots interaction.
  </Accordion>

  <Accordion title="Enhanced productivity" icon="rocket">
    Focus on analysis and insights while the AI assistant handles code generation and execution details.
  </Accordion>

  <Accordion title="Learning and discovery" icon="compass">
    Explore datasets and analysis techniques with AI guidance, making it easier to get started with new data or methods.
  </Accordion>

  <Accordion title="Full use of Wherobots ecosystem" icon="globe">
    Leverage the Wherobots MCP server for dataset discovery and execution, unlocking the full potential of Wherobots Cloud in your notebooks and then turn those notebooks into repeatable workflows and jobs.
  </Accordion>
</AccordionGroup>

## Before you start

Ensure you have the following:

* The [Wherobots VS Code Extension](/develop/agentic-tools) installed and configured (also compatible with [Cursor](https://www.cursor.com/), [Windsurf](https://windsurf.com/), [Kiro](https://kiro.dev/), and [other editors](/develop/agentic-tools))
* A Wherobots **Account**. For more information, see [Create a Wherobots Account](/get-started/wherobots-cloud/create-account).
  * **Community Edition Organizations** can run local notebooks against the Tiny and Micro runtimes.
  * **Professional or Enterprise Organizations** are required for job submission, the Wherobots MCP server, and additional compute tiers. For more information, see [Upgrade Organization](/get-started/upgrade-organization) or [Organization Editions](/get-started/organization-management/organization-editions).
* An active **GitHub Copilot** subscription (or your editor's equivalent AI assistant). For more information about Copilot, see Microsoft's [GitHub Copilot](https://github.com/features/copilot).

  <Tip>
    **Use advanced models**

    AI-assisted notebook generation works best with the latest advanced AI models (for example, the latest Claude Opus, Gemini Pro, or GPT Codex models) -- ensure your subscription includes access to these models for optimal results.
  </Tip>

## Create and run a notebook with your AI assistant

To create and run a Jupyter notebook connected to Wherobots compute using your editor's AI assistant:

<Steps>
  <Step title="Open the Command Palette">
    To open the **Command Palette**, click the search bar at the top of your editor and type `>wherobots:`.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/command-palette.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=2aa9ace9432dc208b27ea4ac2ca8730c" alt="Command Palette" width="1188" height="332" data-path="develop/vscode-extension/images/command-palette.png" />

    <Tip>
      You can also press <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Mac, <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows/Linux.
    </Tip>
  </Step>

  <Step title="Set your API key">
    If you haven't already, set up your API Key:

    1. Type `Wherobots: Set API Key` and click <kbd>Enter</kbd>.
    2. Enter your Wherobots API key when prompted.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/command-palette.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=2aa9ace9432dc208b27ea4ac2ca8730c" alt="Command Palette" style={{ display: "block", margin: "0 auto", maxWidth: "350px" }} width="1188" height="332" data-path="develop/vscode-extension/images/command-palette.png" />

    <Tip>
      If you haven't created an API key yet, run `Wherobots: Generate API Key on Wherobots Cloud` to create one.
    </Tip>
  </Step>

  <Step title="Create a workspace">
    Open the Command Palette and type `Wherobots: Create Workspace`.

    Click <kbd>Enter</kbd> to run the command.
  </Step>

  <Step title="Choose a runtime">
    1. Choose the runtime configuration for your workspace, including **Region**, **Runtime Size**, and **Idle Timeout**.
    2. Click **Create & Start**.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/create-workspace.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=d20680c1fe3935e2dba80e20c2948e43" alt="Create Workspace runtime configuration" style={{ display: "block", margin: "0 auto", maxWidth: "300px" }} width="1288" height="1180" data-path="develop/vscode-extension/images/create-workspace.png" />

    <Note>
      Community Edition Organizations are limited to the [Tiny and Micro runtimes](/develop/runtimes). Professional and Enterprise Organizations can select from [additional compute tiers](/develop/runtimes#runtime-specifications-chart).
    </Note>
  </Step>

  <Step title="Open the chat panel">
    Open your editor's AI assistant. In VS Code, open **GitHub Copilot Chat** via **View > Chat**.

    <Tip>
      In VS Code, you can also open Copilot Chat by pressing <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> on macOS or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> on Windows/Linux. Other editors have their own shortcuts -- consult your editor's documentation.
    </Tip>
  </Step>

  <Step title="Select Agent mode">
    Select **Agent** mode from the chat mode dropdown at the top of the chat panel.

    <Frame caption="Selecting Agent mode in Copilot Chat in VS Code. Consult the documentation for your chosen editor on how to change modes and models.">
      <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/agent-mode.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=f27cc427fa03df0fb0cf1111480fc64b" alt="Select Agent mode in Copilot Chat" style={{ display: "block", margin: "0 auto", maxWidth: "450px" }} width="846" height="206" data-path="develop/vscode-extension/images/agent-mode.png" />
    </Frame>
  </Step>

  <Step title="Choose a high-performance model">
    Select a high-performance AI model for optimal results. This includes the latest versions of advanced models such as **Gemini Pro**, **Claude Opus**, **Claude Sonnet**, or **GPT Codex**.
  </Step>

  <Step title="Warm up the MCP server (Professional and Enterprise only)">
    Ask a simple question to confirm the MCP server is connected:

    > *List the available tables in wherobots\_pro\_data.*

    The MCP server may take a moment to warm up if this is your first query since starting the workspace.

    Shortly, you should see a response listing available tables in the `wherobots_pro_data` dataset.

    <Note>
      The Wherobots MCP Server requires a [Professional or Enterprise](/get-started/organization-management/organization-editions) Organization Edition. Community Edition Organizations do not have access to the Wherobots MCP server.
    </Note>
  </Step>

  <Step title="Prompt the AI assistant to build your notebook">
    Enter a natural language prompt describing the notebook you want. For example:

    > *Create a notebook that finds all parks within 1 mile of subway stations in Manhattan using the Overture Maps dataset. Run each cell.*

    <Tip>
      When your editor requests permissions for the Wherobots MCP server, click **Allow** (or **Allow in this session** to avoid repeated prompts).
    </Tip>

    At this point, the AI assistant will locally generate a notebook (an `.ipynb` file) based on your prompt. You can [open and run this notebook](#run-a-local-notebook-against-wherobots-compute) in your editor.
  </Step>
</Steps>

## Run a local notebook against Wherobots compute

Now that your notebook is generated from the [previous step](#create-and-run-a-notebook-with-your-ai-assistant), you can run it and see the results of each cell directly within your editor.

<Tip>
  You can use these steps to run **any** local Jupyter notebook against Wherobots compute, not just AI-generated notebooks.
  This allows you to leverage Wherobots compute and datasets in your existing notebooks as well.
</Tip>

<Steps>
  <Step title="Open the Command Palette">
    To open the **Command Palette**, click the search bar at the top of your editor and type `>wherobots:`.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/command-palette.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=2aa9ace9432dc208b27ea4ac2ca8730c" alt="Command Palette" width="1188" height="332" data-path="develop/vscode-extension/images/command-palette.png" />

    <Tip>
      You can also press <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Mac, <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows/Linux.
    </Tip>
  </Step>

  <Step title="Open the Workspaces view">
    Click `Wherobots: Focus on Workspaces View`.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/command-palette.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=2aa9ace9432dc208b27ea4ac2ca8730c" alt="Command Palette" width="1188" height="332" data-path="develop/vscode-extension/images/command-palette.png" />
  </Step>

  <Step title="Create a workspace">
    Click **Create Workspace**

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/create-workspace-button.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=e332886b053f117e25344181c1066f30" alt="Create Workspace button" style={{ display: "block", margin: "0 auto", maxWidth: "350px" }} width="672" height="626" data-path="develop/vscode-extension/images/create-workspace-button.png" />

    Creating a workspace provisions a [runtime](/develop/runtimes) -- a dedicated compute cluster -- in Wherobots Cloud. Once the runtime is running, your local notebook can connect to it and execute code remotely.
  </Step>

  <Step title="Open the local notebook">
    If the notebook is already open in your editor, skip to the next step.

    Otherwise, do the following:

    1. Hover over the running workspace you started and a plug icon (<Icon icon="plug" />) will appear.
    2. Click the plug icon to find and open the notebook file on your local machine. The notebook will open in a new tab in your editor.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/plug-icon.png?fit=max&auto=format&n=sQRlg2xOr4yRMlZ8&q=85&s=de1b2f2e30822f2746572f58b4a89762" alt="Plug icon" style={{ display: "inline-block", margin: "0 0 0 0.25rem", maxWidth: "350px" }} width="588" height="588" data-path="develop/vscode-extension/images/plug-icon.png" />
  </Step>

  <Step title="Run all cells">
    Within the notebook, click **Run All** to execute all cells.

    <img src="https://mintcdn.com/wherobots/sQRlg2xOr4yRMlZ8/develop/vscode-extension/images/select-kernel-run-all.gif?s=79fb67e63e026bc92ae3c109ebede3d4" alt="Local notebook workflow" width="1080" height="523" data-path="develop/vscode-extension/images/select-kernel-run-all.gif" />
  </Step>

  <Step title="Select kernel source">
    When prompted for the kernel source, select **Wherobots**.
  </Step>

  <Step title="Select a running workspace">
    Select a running workspace from the list. Each workspace corresponds to a runtime provisioned in Wherobots Cloud.
  </Step>

  <Step title="Choose the Jupyter kernel">
    Select the appropriate Jupyter kernel. For most workflows, choose **Python 3 (ipykernel)**.
  </Step>
</Steps>

## Effective prompting strategies

The quality of AI-generated notebooks depends heavily on the prompts you provide. Use the following strategies for best results:

| Strategy                      | Example prompt                                                                  |
| ----------------------------- | ------------------------------------------------------------------------------- |
| Be specific about the dataset | "Use the Overture Maps buildings dataset to find all hospitals in Chicago"      |
| Request validation            | "Check that each query works at a small scale before adding it to the notebook" |
| Request iteration on failures | "If a query fails, debug and fix it, then try again"                            |
| Specify output format         | "Display the results on a map"                                                  |

<Info>
  AI-assisted development is meant to be iterative. You may need to refine your prompts or guide the AI assistant
  through multi-step analyses. The experience improves as you develop prompting patterns
  that work well with your datasets.
</Info>

### Model selection tips

Use advanced AI models like the latest versions of the following for optimal results with AI-assisted notebook development:

* **Claude Sonnet**
* **Claude Opus**
* **Gemini Pro**
* **GPT Codex**

These models have enhanced reasoning capabilities and better contextual understanding, making them more effective at generating accurate code and handling complex notebook creation tasks.

## Next steps

<CardGroup cols={3}>
  <Card title="Browse Your Data" icon="database" href="/develop/vscode-extension/integrate-your-data">
    Browse catalogs, schemas, and tables in the Data Hub sidebar. Create notebooks from your data with AI.
  </Card>

  <Card title="Submit Job Runs" icon="play" href="/develop/vscode-extension/jobs">
    Submit Python scripts as Wherobots job runs. *Available to Professional and Enterprise Organizations only.*
  </Card>

  <Card title="Workspaces & Usage" icon="server" href="/develop/vscode-extension/workspaces">
    Create, start, stop, and destroy notebook workspaces.
  </Card>
</CardGroup>
