Skip to content

Dataset

Jupyter notebook datasets with outputs for AI training

A Jupyter notebook dataset is a collection of analysis notebooks kept with their code cells, saved outputs, charts, execution order and markdown commentary, and where it can be traced, the request or report each analysis served. SourceX sources these to a buyer's spec from established businesses whose analytics and data science teams work in Jupyter, Databricks, Hex and Deepnote and keep notebooks on those platforms and in git. Each dataset is de-identified and licensed for an agreed permitted use. Buyers should confirm that printed rows and dataframe previews in cell outputs were scanned for personal data.

Dataset manifest

Sourced to your spec
What it is
Internal analysis notebooks with code, markdown, saved outputs, charts and links to the request and the consumer of the result
Typical systems
Jupyter and JupyterHub, Databricks notebooks, Hex, Deepnote, Google Colab, Git repositories
Typical history
Varies by partner; workspaces and repositories can hold years of notebooks. Specify the period, languages and share with outputs
Modality
Code and markdown cells with text, table and image outputs; request and report documents alongside
Delivery formats
.ipynb files with outputs, platform exports converted to .ipynb where possible, figures as PNG, JSONL manifest
Preparation
Outputs scanned for personal data; row previews masked or stripped; credentials, connection strings and internal paths removed
Licensing
Scoped per team, workspace or repository; permitted use agreed per license; state whether any underlying data is in scope
Availability
Sourced to your spec from organizations with working data teams; 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
notebook_idstringPseudonymous, stable ID that the request, figures, versions and consumer records refer to.
platformobjectNotebook tool, the file or export format it came from, and the kernel language.
requestobjectThe question that started the analysis, from a ticket, chat message or brief, with the requester's role and date.
cellsarrayCells in page order with type (code, markdown, SQL, raw), source text and any tags.
cells[].execution_countinteger or nullThe kernel's counter value when the cell last ran, as saved; null for a cell that never ran.
cells[].outputsarraySaved outputs of the cell: stream text, execution results, display data and errors, with rich outputs keyed by MIME type.
figuresarrayChart images extracted from outputs, each tied to the cell and plotting code that drew it.
kernel_environmentobjectKernel language version, package list or lockfile, and the cluster or runtime image.
data_inputsarrayTables, files and queries the notebook read, with schema, snapshot date and whether any data is delivered.
reexecutionobjectResult of running every cell from the top in a clean kernel: status, the snapshot used and where outputs differed.
version_historyarrayCommits or platform revisions with timestamps, author roles and change summaries.
consumerobjectThe report, slide, dashboard, decision or scheduled job that used the result, with the link method and a confidence flag.
output_screenobjectWhat the personal-data scan of outputs covered and how many outputs were masked or stripped.
Sample recordIllustrative

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

Example record

{
  "notebook_id": "nb_62c9e1",
  "platform": {
    "tool": "jupyterhub",
    "format": "ipynb"
  },
  "request": {
    "source": "ticket",
    "ref": "DATA-1841",
    "requester_role": "vp_customer_success",
    "text": "SMB renewal rate dropped last quarter. Is it pricing or onboarding?"
  },
  "cells": [
    {
      "n": 1,
      "type": "markdown",
      "source": "## SMB renewals, Q3\nRenewal = contract extended within 30 days of term end."
    },
    {
      "n": 2,
      "type": "code",
      "execution_count": 14,
      "source": "df = pd.read_sql(RENEWALS_SQL, conn)\ndf.groupby('onboarding_done')['renewed'].mean()",
      "outputs": [
        {
          "output_type": "execute_result",
          "text/plain": "onboarding_done\nFalse    0.58\nTrue     0.81"
        }
      ]
    },
    {
      "n": 3,
      "type": "code",
      "execution_count": 9,
      "source": "df = df.drop_duplicates('contract_id')",
      "outputs": []
    },
    {
      "n": 4,
      "type": "code",
      "execution_count": 15,
      "source": "plot_rate(df, by='onboarding_done')",
      "outputs": [
        {
          "output_type": "display_data",
          "image/png": "fig_04.png"
        }
      ]
    }
  ],
  "figures": [
    {
      "cell": 4,
      "file": "fig_04.png"
    }
  ],
  "kernel_environment": {
    "python": "[VERSION]",
    "lockfile": "requirements.lock"
  },
  "data_inputs": [
    {
      "table": "analytics.renewals",
      "snapshot": "2023-10-03",
      "delivered": false
    }
  ],
  "reexecution": {
    "saved_count_order": [
      14,
      9,
      15
    ],
    "status": "ran_with_differences",
    "note": "Run from the top, the group-by comes before the de-duplication. The saved rates were computed after it."
  },
  "version_history": [
    {
      "rev": 3,
      "summary": "Version shown here"
    },
    {
      "rev": 4,
      "t": "2023-10-04T16:20:00Z",
      "summary": "Moved de-duplication above the aggregation after review"
    }
  ],
  "consumer": {
    "type": "slide",
    "ref": "Quarterly review deck, slide 7",
    "link_method": "chart_image_match",
    "confidence": "high",
    "decision": "Onboarding call made mandatory for new SMB accounts"
  },
  "output_screen": {
    "outputs_scanned": 11,
    "outputs_masked": 1
  }
}

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

What AI teams use it for

Train data analysis agents

Requests paired with the notebook that answered them show the full path from a business question through data checks to a result someone used.

Generate code conditioned on outputs

Cells followed by their real outputs let a model learn to write the next step from what the previous table, chart or error showed.

Read and write charts

Figures tied to the plotting code and a summary of the plotted data support chart generation, captioning and chart question answering.

Repair and reproduce notebooks

Out-of-order, stale and failing notebooks beside their clean re-executed versions make examples for restoring a notebook to a runnable state.

Build executable evaluation tasks

Notebooks that re-execute against a snapshot or a synthetic stand-in give tasks with a checkable answer, scored on outputs and not on code similarity.

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

What makes this data valuable

Outputs present

Saved tables, text and figures on most code cells, not notebooks stripped before commit.

Re-execution status

A recorded clean run from the top, with outputs compared, shows which notebooks are valid code and output pairs.

Pinned environment

A lockfile, package list or named runtime lets the notebook be run again as it was.

Request and consumer links

A known question at the start and a report, decision or job at the end separate finished analyses from scratch work.

Commentary

Markdown cells that state assumptions, definitions and conclusions carry the analyst's reasoning between code steps.

Version history

Commits or platform revisions show how the analysis changed after review or new data.

Document stack

Jupyter notebook dataset

This page covers analysis notebooks with executed outputs.Illustrative

Why a notebook must re-execute top to bottom

A notebook file is not a record of one run. An .ipynb file is JSON in which each code cell stores its source, the outputs from the last time that cell ran, and an execution count taken from the kernel's counter. The kernel holds variables in memory, so cells can be run in any order, edited after they ran, or deleted after they defined something later cells use. The saved file shows the traces: counts out of sequence down the page, gaps where cells were removed, an output that no longer matches the code above it, and cells with no count that never ran.

So the code and outputs in a saved notebook may not belong together. The test: restart the kernel and run every cell from the top, in the original environment, against the data as it was. Each condition fails in practice. Packages are installed without pinned versions. Warehouse tables have changed since, queries filter on the current date, and files sit at a path on someone's laptop. Unless the team kept a snapshot, the original inputs are gone.

Where the outputs survive also varies. Teams that keep notebooks in git often strip outputs before committing, so the repository holds code only and the outputs live in the workspace copy. A Databricks source-file export holds only code, while its HTML, archive and .ipynb exports carry results when outputs were included at export. Some hosted tools re-run dependent cells when an upstream cell changes, which leaves less hidden state, so ask how each platform executes cells. Ask for a re-execution status on every notebook: ran clean with matching outputs, ran with differences, failed, or not attempted.

Public notebook collections lean toward tutorials, course exercises, library demonstrations and competition entries. The dataset is clean, the goal is given, and nobody is waiting for the answer. A company notebook starts from a question someone asked, such as why renewals fell in one segment last quarter. It works against internal tables with duplicated keys and the company's own definition of an active customer, and it ends somewhere: a chart pasted into a deck, a number in an email, a decision not to extend a promotion, or a job that now runs every morning.

The end is stored outside the notebook, which is why it is scarce. A figure is saved as an image and pasted into a slide, a number is retyped into an email, the notebook is exported to HTML and attached to a wiki page, or its code is copied into a scheduled job. Links are rebuilt by matching a chart image in a report to the cell output that produced it, from a notebook URL cited in the report, or from the platform's own record of a published app or a scheduled run, which is the strongest evidence. The request end is easier to find, often a ticket key in the notebook title or its first markdown cell.

The link also sorts the collection. Much of a workspace is scratch work: untitled files, copies with a suffix, explorations dropped halfway. Without a consumer there is no way to tell which analysis was accepted. With one, version history can show a reviewer catching a full quarter compared with a partial one, and the corrected run that replaced it. A statistical program is written to a specification fixed in advance, and a query log holds single statements. A notebook holds the whole path from a loose question to an answer someone used.

What to check before licensing

  • Scan cell outputs on the sample for personal data: dataframe previews, printed rows, error tracebacks that echo values, chart labels, and interactive chart outputs that embed the plotted data.
  • Ask whether notebooks came from the workspace or from git, and what share of code cells still carry outputs, since many teams strip outputs before committing.
  • Request the re-execution status per notebook and how it was tested: clean kernel, original environment, and which data snapshot.
  • Search cells and outputs for credentials, connection strings, tokens, internal hostnames and file paths, including in shell commands.
  • Count the notebooks that have a request link and a consumer link, and ask how each link was made and how confident it is.
  • Confirm rights in what the outputs show. Notebooks often display licensed third-party data, client data at agencies and consultancies, and code copied from documentation or forums.
  • Ask how scratch notebooks, forks and near-duplicate copies were handled, and whether SQL cells are kept with their results.

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

Do the notebooks include cell outputs?

Yes, where the holder still has them. Outputs are kept as saved in the notebook: text streams, result tables, error tracebacks and chart images, each attached to the cell that produced it. Notebooks that reached git without outputs can sometimes be matched to a workspace copy. Specify the minimum share of code cells with outputs you need.

Is the underlying data delivered with the notebooks?

Usually not, and the spec should say so either way. The tables and files a notebook read tend to hold customer or employee records, so most specs leave them out and describe inputs by table name, schema and snapshot date. If you need notebooks that execute, ask whether the holder can supply a de-identified extract or synthetic data built to the same schema.

How is personal data in outputs handled?

Outputs need their own scan, with hits masked or stripped, and you should check the result on a sample. A dataframe preview or a printed row is real data, so each output is checked for names, emails, phone numbers, account numbers and free text. Chart images and interactive chart outputs need a separate check, because axis labels and embedded data can carry the same records. No method is perfect.

Which notebook platforms can be sourced?

Jupyter notebooks are the most portable, and Databricks, Hex, Deepnote and Google Colab can be specified too. Each exports differently. Jupyter and Colab save .ipynb files that keep outputs unless they were cleared. Databricks can export source files without results or formats that include them. Hosted platforms such as Hex and Deepnote add SQL cells, input widgets and published apps that Jupyter does not define, so ask what an export to .ipynb keeps.

How is this different from public notebook collections?

The questions, the data and the ending are different. Public collections are largely tutorials, coursework and competition entries on clean, well-known datasets, with no requester and no consequence. Internal notebooks answer a question a colleague asked, against messy company tables, and feed a report or a decision.

Can I get only notebooks that run end to end?

Yes, that can be the spec, and it narrows supply. Running end to end requires the environment and a data snapshot or stand-in, which many holders no longer have for older work. A practical spec sets tiers: notebooks verified by re-execution, notebooks that pass static checks on execution order and defined names, and notebooks delivered as code and prose only.

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 25 November 2026.

See if your company qualifies