Skip to content

Dataset

Hex notebook project and data app datasets for AI training

A Hex dataset is a set of project definitions from a business's Hex workspace: notebooks of SQL, Python, Markdown, chart and input parameter cells, the published apps built from them, the shared components they import, and their saved versions and comments. The definitions hold cell source and settings, not query results. SourceX sources it to a buyer's spec from established businesses whose analysts work in Hex. Each dataset is de-identified, including literal values in cell source and comments, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Project definitions with every cell's type, source and settings, the dependencies between cells, app layouts, components and saved versions
Typical systems
Hex workspaces: projects with their notebook logic and app layout, shared components, scheduled runs and comments, exported as YAML or through Git export
Typical history
As far back as the workspace's projects and their saved versions go; results of past runs are not in the export
Modality
SQL and Python source, Markdown text and structured cell configuration
Delivery formats
YAML project files, plus JSONL with one record per cell and version; any captured outputs as separate files
Preparation
Literal customer values, names and credentials in cell source, Markdown and comments removed or replaced; connection names pseudonymized
Licensing
Scoped per workspace, collection or project; permitted use agreed per license; outputs and warehouse data licensed separately if wanted
Availability
Sourced to your spec; depends on what each workspace kept, and supply is not guaranteed
CodeIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
project_idstringPseudonymous ID of the Hex project, which holds a notebook's cells and the app built from them.
project_metaobjectThe project's title, description, status, categories and owner role as set in the workspace.
project_versionobjectWhich autosaved, named or published version of the project this is, with its name and time.
cell_idstringID of one cell, in the order cells appear in the project's notebook.
cell_typeenumThe Hex cell type, such as SQL, Python, Markdown, text, chart, table display, pivot, filter, input, writeback or component.
sourcestringThe cell's source as saved: Python code, Markdown text, or SQL with its Jinja references to input parameters and Python variables.
sql_settingsobjectFor a SQL cell, its data connection or a flag that it is dataframe SQL, its result name, and whether it returns a dataframe or, in query mode, a query object.
definesarrayNames of the variables and dataframes the cell creates for other cells to read.
readsarrayNames the cell reads that other cells or input cells define, which are the edges of the graph Hex draws in its Graph view.
cell_configobjectFor an input cell, its kind, output variable and default value; for chart, pivot and table display cells, the source dataframe, chart type, axes, series and aggregations.
app_layoutobjectWhere the cell's output sits in the published app, by tab and position, or that it is hidden from app viewers.
commentsarrayComment threads left on the cell in the notebook or the published app, with author roles and times, de-identified.
captureobjectHow the definition was obtained, by YAML export, Git export repository or API, and whether outputs were captured separately.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "project_id": "hexprj_8c41d7e2",
  "project_meta": {
    "title": "Weekly retention by signup cohort",
    "status": "Completed",
    "owner_role": "analytics_engineer"
  },
  "project_version": {
    "name": "v14 add trial toggle",
    "saved_at": "2024-08-19T14:58:40Z",
    "published": true
  },
  "cell_id": "cell_0007",
  "cell_type": "SQL",
  "source": "select cohort_week, weeks_since_signup,\n       count(distinct account_id) as active_accounts\nfrom analytics.fct_account_activity\nwhere cohort_week >= {{ start_date }}\n  {% if exclude_trials %} and is_trial = false {% endif %}\ngroup by 1, 2",
  "sql_settings": {
    "data_connection": "conn_warehouse_prod",
    "returns": "dataframe",
    "result_name": "retention_raw"
  },
  "defines": [
    "retention_raw"
  ],
  "reads": [
    "start_date",
    "exclude_trials"
  ],
  "cell_config": null,
  "app_layout": {
    "shown_in_app": false
  },
  "comments": [
    {
      "author_role": "finance_analyst",
      "at": "2024-08-16T09:12:05Z",
      "text": "Exclude trials by default? The board report does."
    }
  ],
  "capture": {
    "route": "yaml_export",
    "outputs_captured": false,
    "captured_on": "2024-10-02"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train analytics agents on multi-step analysis

Chains from SQL to Python to chart, with every intermediate result named, show how an analyst gets from question to figure.

Teach parameterized SQL

Jinja-templated queries paired with their input cells show how analysts write SQL meant to be reused by others.

Learn how data apps are built

Notebook logic paired with its app layout shows which results and inputs analysts expose to stakeholders.

Model review of analyses

Saved versions and comment threads show what a reviewer questioned and how the analysis changed.

Evaluate dependency reasoning

Given an edit to one cell, an agent predicts which cells must rerun, and the project's graph is the answer key.

Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Published and scheduled projects

A project with a published app and a schedule was used by other people, unlike scratch work.

Saved versions present

Named versions with times let a buyer study how an analysis changed.

Components included

Every component a project imports is in the delivery at the version referenced.

Warehouse schema alongside

Table and column definitions for the schemas the SQL cells query make the SQL checkable.

Outputs with run details

Any outputs supplied carry the run date, the input values used and the project version.

Explained logic

Markdown cells and comments tie the code to the business question being asked.

Document stack

Hex dataset

This page covers hex notebook projects and data apps.Illustrative

A Hex project is a graph of cells, not a script

In a file-based notebook the order of execution is whatever the analyst happened to run. A Hex project is reactive. Hex reads each cell for the names it defines and the names it reads, builds a dependency graph, and when a cell or an input changes it reruns the cells downstream or, in a run mode other than Auto, marks them stale. An input cell defines a variable. A SQL cell reads that variable through Jinja and returns its result under a name. A Python cell reads that result as a dataframe, and a chart cell is configured against what the Python cell produced. Which earlier results a step used is an edge in the project, not a guess from cell order.

A SQL cell either runs on a data connection, in the warehouse's dialect, or queries dataframes already in the project, which Hex runs in the DuckDB dialect. Two adjacent SQL cells can be in two dialects, and only their settings say which. A warehouse SQL cell can also be set to query mode, where it fetches only a preview and its result stays a query object. When a later warehouse SQL cell selects from an earlier one, Hex inserts the upstream SQL as a common table expression, so the SQL that ran is a composition of several cells.

Hex keeps definitions and overwrites results. Version history holds autosaved and named versions, and each publish adds a version and sets what app viewers see, so the draft can be ahead of the app. Each run replaces the cell outputs, and a scheduled run updates the app's results, so the figures shown last quarter are gone unless someone froze the app in a snapshot or a cell wrote them somewhere. The graph is inferred from variable references in Python and SQL, so a dependency that never appears as a name, such as a variable created through globals(), is not an edge. A cell imported from a shared component lives in that component, and a project stays on the component version it imported until someone updates it, so the component library has to come with the projects, at the versions they reference.

The export is a definition and the results stay in Hex

Hex writes a project out as a YAML text file that lists the project's settings and its cells: each cell's type, source, configuration and place in the app layout. Git export commits the same kind of file to a repository, one way, which adds commit history where the business used it. The file holds no cell outputs, dataframes or chart images, and a data connection appears only as a reference. Hex can also export a project as a Jupyter file, in which SQL cells and input parameters no longer work, so ask for the YAML. The YAML shows what the analyst asked and not what the analyst saw.

The SQL in the file is a template. Jinja references and conditional blocks are resolved at run time against input values, so the statement the warehouse received is not in the export and has to be rebuilt from input defaults or recorded run values. And outputs must be captured separately, by running the project against the business's warehouse or by saving tables, pages or snapshots from the published app. A fresh run shows the data as of the capture date, from tables that may have changed since the analysis was written. Hex's API can export a project in this format and start runs. Its output calls are narrower, a preview of a SQL cell's latest result or a rendered chart image, so ask how any outputs supplied were obtained.

To test a sample, parse the definitions and rebuild the graph from the names each cell defines and reads. A cell that reads a name nothing defines points to a missing component or a deleted cell. Check whether versions are full definitions or only the latest. Where outputs are supplied, compare each capture date, input values and project version with the definition it claims to belong to.

What to check before licensing

  • Have the data owner and your counsel check Hex Technologies' terms on exported data and API use, and the terms of the warehouse the projects query, for the use you intend.
  • Search SQL and Python cell source for literal customer names, emails and account IDs in filters, and for pasted keys, passwords and connection strings.
  • Read a sample of comment threads and Markdown cells for personal data and named customers.
  • If outputs, app snapshots or cached results are supplied, ask how and when they were captured and with which input values, and check them for personal data.
  • Ask whether the delivery holds every saved version of each project or only the latest, and whether unpublished drafts are included.
  • Confirm that each project's components are delivered at the version the project references, that uploaded files and data connections resolve, and that the warehouse schema is supplied for the tables queried.
  • Ask whether any projects were built by contractors or copied from templates the business does not own.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does a Hex export include query results and charts?

No. A Hex project export is a text definition of the cells and settings, without cell outputs, dataframes or rendered charts. Chart cells appear as their saved configuration, such as chart type, axes and series. Results have to be captured separately, from runs against the business's warehouse or from app snapshots the business saved, each with its date and input values.

Can the projects be re-run after delivery?

Not on their own, because the SQL cells query the business's warehouse through data connections that are not part of the export. Re-running needs either the underlying tables, licensed and de-identified as a separate dataset, or a stand-in schema with synthetic rows. Ask for the schema of the tables queried, so the SQL can at least be checked.

How does a Hex project differ from a Jupyter notebook as training data?

A Hex project is a reactive graph of typed cells, while a Jupyter notebook is an ordered list of code and Markdown cells with saved outputs. Hex adds SQL cells bound to data connections, input parameters, chart cells configured without code and an app layout, and its cells depend on each other by name. Its YAML export carries no outputs.

Is version history included?

Where the business kept it and it can be extracted. Hex keeps autosaved, named and published versions of a project, and how far back they go can depend on the workspace's plan. Workspaces that used Git export also have a commit history of the project files. A delivery may hold every version, published versions only or just the latest. Specify which you need, since studying how an analysis changed takes at least two.

Do the projects contain customer data?

They can, even without outputs. Analysts paste literal values into filters, such as a customer name or account ID, hard-code lists in Python cells, discuss named customers in comments and sometimes paste credentials into code. Cell source and comments are de-identified before delivery, and you should still search a sample yourself.

Is SourceX affiliated with Hex Technologies?

Hex is named to identify the system the records come from. That does not imply a partnership with or endorsement by Hex Technologies. The records belong to the business that runs Hex, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies