Before you start
The following requirements must be met before you can connect to a Glue catalog in a Wherobots Jupyter Notebook.- An Admin or User Wherobots account within a Professional, Innovation, or Enterprise Organization Edition. For more information, see Organization Editions.
Only Admins can create Glue catalog connections but a User can query the buckets bound to those Connections. If you are not an Admin, ask your Admin to create a Cloud Connection for you.
- An existing Glue catalog connection in Data Hub, or permission to create one. For more information on creating a Glue catalog connection, see Connect to AWS Glue Catalog.
In Wherobots Cloud, you must start a new runtime after creating the catalog. Notebooks only see catalogs that existed when the runtime started.
Adapt this guide with AI
This section provides instructions for using AI tools to adapt this guide to your own environment.The following prompts are designed for use with Claude Code, Codex, or the Wherobots VS Code Extension with the Wherobots MCP server enabled.For optimal results, ensure that the Wherobots MCP server and/or VS Code extension are installed and active before execution. For more information, see Get Started with Agentic Development in Wherobots.
- Click the v button at the top-right corner of this page (next to Copy page) to open the contextual menu for AI tools.
-
Load this page into your AI tool of choice (VS Code, Claude Code, Codex, etc.). This works for any Wherobots documentation page.

Contextual menu for AI tools
-
Open the dropdown to do either of the following:
- Open in Claude Code or Open in Codex: Start a conversation preloaded telling the model to read this page, then add your own prompt that includes a scenario or question specific to your environment.

Preloaded prompt in Claude Code

Preloaded prompt in Codex
Example prompt
Success of the following prompts requires that you completed the Connect to AWS Glue Catalog guide and have a Glue catalog connection in Data Hub. Once the page is loaded into an LLM or AI tool, include your values in a prompt like the following to get a runnable notebook for your Glue catalog:Notebook generation prompt
The following prompt can be used to generate a runnable notebook. Make sure to adapt this prompt’s variables and goals to your own values.Example: Querying a Glue-backed Iceberg table in a notebook
This section details an end-to-end example of connecting, transforming, writing, and validating data in a Glue-backed Iceberg table from a notebook. At a high level, the following example code does 3 main things:- Configures a Sedona/Spark session to use AWS Glue as an Iceberg catalog, authenticating through your Wherobots Cloud Connection IAM role.
- Runs a small ETL flow on a Comma-separated values (CSV) file in S3: reading data, normalizing column names, trimming text, removing duplicates, and adding a synthetic foot traffic score plus ingestion metadata.
- Writes the result to an Iceberg table in Glue, then verifies the write by showing table metadata, file formats, and sample rows.
Set your variables and create a Sedona session
The following code imports libraries that are used in the example, sets variables for your Glue catalog and S3 locations, and creates a Sedona session that can read and write Iceberg tables in Glue.Set variables and create a Sedona session
Once you’ve connected your Glue catalog in Data Hub, Wherobots handles the Iceberg, authentication, and warehouse configuration for you. A standard
SedonaContext can query the catalog like any other Wherobots catalog — reference its tables as CATALOG_NAME.DATABASE_NAME.TABLE_NAME.Basic ETL and synthetic scoring
The following code reads the source file, cleans it, adds a couple of derived columns, and writes the result to a new Iceberg table in your Glue catalog.Normalize, clean, and score the source data


