ipynb to pdf

MERGE IPYNB

Many notebooks,one file.

Drop in two or more .ipynb files, put them in order, and download a single merged notebook: every cell keeps its source, outputs and images, and nothing is uploaded anywhere.

Merged in your browser — the notebooks are never uploaded. You can also drop them anywhere on this page, and add more at any time.

  • Jupyter Notebook
  • JupyterLab
  • Google Colab
  • VS Code
  • Kaggle
  • Deepnote

0 bytes uploaded

Parsing and merging happen on your device.

100% of the outputs kept

Tables, plots, text and tracebacks travel with their cells.

nbformat 3 + 4 read

Modern notebooks and the legacy worksheet format.

1 file out

A single .ipynb that opens anywhere Jupyter does.

What the merge keeps

Everything that was in the notebooks.

A merge is a concatenation, not a rewrite: the cells keep what they arrived with, and only the bookkeeping is redone.

Cells in your order

The notebooks merge in the order you list them — reorder the queue with the arrows and the merged file updates instantly.

Outputs come along

Plots, tables, stream text and tracebacks stay under their cells, with their execution counts, so the merged notebook reads like the originals.

Markdown attachments kept

Images attached to markdown cells survive the merge, so prose that carries its own figures still renders.

Ids made unique

Cell ids are re-derived from cell text and position, because ids from different notebooks can collide and Jupyter requires them unique.

Kernel from the first file

The merged notebook adopts the first notebook’s kernel, so merging Python notebooks stays Python instead of being relabelled.

Deterministic output

The same files in the same order produce the same merged notebook, byte for byte — diff-friendly, with no timestamps and no random ids.

Compatibility

Reads every notebook in the pile.

Notebooks from Jupyter, JupyterLab, Colab, Kaggle, Deepnote and VS Code merge together, including the older nbformat 3 files.

Accepted input

  • nbformat 4 (current)
  • nbformat 3 worksheets (legacy)
  • one notebook at a time or many per drop
  • size limited only by browser memory

Kept per cell

  • source, byte for byte
  • outputs with their execution counts
  • markdown attachments (inline images)
  • cell metadata (tags, collapsed state)

Recomputed

  • cell ids (unique, deterministic)
  • notebook-level kernel (first file wins)
  • nbformat 4.5 wrapper
  • the file name: merged.ipynb

Known limits

  • interactive widget state may need a re-run
  • duplicate imports are not deduplicated
  • the first file’s kernel is kept, not converted
  • no table of contents is generated

How it works

Three steps to one notebook.

Drop in two or more .ipynb files, put them in order, and download a single merged notebook: every cell keeps its source, outputs and images, and nothing is uploaded anywhere.

  1. 01

    Add the notebooks

    Choose two or more .ipynb files or drag them onto the page; each is parsed on your device as it arrives.

  2. 02

    Set the order

    Move files up and down in the queue, remove anything you change your mind about, and watch the merged preview update.

  3. 03

    Download merged.ipynb

    One file with every cell in order. Open it in Jupyter, JupyterLab, Colab or VS Code and run it as usual.

Every route to a merged notebook

Four ways to combine notebooks, from the browser queue above to the command-line tools built for the job — pick the one that fits where you already are.

nbmerge (pip install nbmerge)

The classic concatenator: nbmerge a.ipynb b.ipynb > merged.ipynb writes the cells of both into one file. It is the closest equivalent to this page — same job, in a terminal, with an install.

nbdime, for conflicts rather than chapters

nbdime merges competing versions of the same notebook — base, local, remote — with conflict resolution, which is what you want when a git merge hits an .ipynb. Concatenating separate notebooks is the job above, not this one.

Splitting a notebook back into chapters

The reverse trip. When a merged notebook grows past the point where anyone reviews it end to end, the splitter cuts it at its headings — or every N cells — and writes each part as its own .ipynb with its outputs intact. Merge the parts back in the same order and the cells return unchanged, which is what makes the pair usable for chapter-by-chapter review. There is no nbconvert --split flag: conversion names a target format, and a split has none. Split a notebook

Jupyter's own menus

JupyterLab and Notebook 7 copy cells between notebooks: select the cells, copy, open the target notebook and paste. It works for a handful of cells; it does not scale to whole chapters, which is why the queue above exists.

In a hurry? The queue at the top is the whole workflow.

Choose the notebooks, order them, download — the same concatenation nbmerge performs, without the install or the terminal.

What the merge keeps (and what it recomputes)

  • Source as written — every code and markdown cell, byte for byte.
  • Outputs with execution counts — plots, tables, text and tracebacks.
  • Markdown attachments — inline images keep rendering.
  • Cell metadata — tags, collapsed state and the rest travel along.
  • Recomputed ids — unique and deterministic, because ids collide across files.
  • One kernelspec — the first file’s kernel names the merged notebook.

FAQ

Merge IPYNB: frequently asked questions

Short answers about combining notebooks — what happens to outputs, how the order works, and whether the merged file opens like any other .ipynb.

How do I merge IPYNB files?

Use the merger at the top of this page: choose two or more .ipynb files, put them in the order you want, and the browser concatenates their cells into one notebook. Download merged.ipynb and open it in Jupyter, JupyterLab, Colab or VS Code. No upload, no install and no terminal involved.

How do I merge notebooks on the command line?

Install nbmerge with pip install nbmerge, then run nbmerge chapter-1.ipynb chapter-2.ipynb > merged.ipynb. It is the classic Python route and the right one inside a build step — this page does the same concatenation in the browser, with nothing to install.

Are outputs kept in the merged notebook?

Yes. Stream text, tables, images, JSON and error tracebacks stay under their cells with their execution counts, because the merger concatenates the cells rather than re-writing them. The only thing that changes per cell is the id.

Can I choose the order of the files?

Yes — files merge in the order they appear in the queue, and the arrows next to each name move it up or down. The merged file and its preview update as soon as the order changes.

What happens when the notebooks use different kernels?

The merged notebook adopts the first file’s kernel. Merging Python notebooks is the common case and stays Python; if you merge an R notebook into a Python one, the R cells keep their code but will not run until the kernel is switched.

Is the merged notebook a valid .ipynb?

Yes: nbformat 4.5, unique cell ids, one kernelspec — the same shape Jupyter itself writes. Notebooks saved in the legacy nbformat 3 are read and re-emitted as nbformat 4 cells.

Will my cell ids change?

They do, by design: cell ids are derived from each cell’s text and position in the merged file, because the originals can collide across notebooks. Merging the same files in the same order always produces the same ids.

Can I merge Colab or Kaggle notebooks?

Yes. Any .ipynb download — Colab’s File → Download → .ipynb, Kaggle’s Download notebook, an export from VS Code or Deepnote — merges exactly like a notebook saved by Jupyter itself.

Is there a limit on how many notebooks I can merge?

No server-side limit: everything happens in your browser, so the practical ceiling is your machine’s memory. Merging dozens of notebooks is routine; the only thing that gets heavy is a notebook with very large embedded outputs.

Are my notebooks uploaded?

No. Files are read with the browser File API and merged inside the tab. You can disconnect from the network after the page loads and the merge still works — which is also the practical proof that nothing is uploaded.

How is this different from nbdime?

Different job: this page concatenates notebooks end to end. nbdime merges competing edits to the same notebook — a three-way merge with conflict resolution — which is what you want when a git merge conflict hits a notebook, not when you want chapters in one file.

Put the chapters back together.

Drop the notebooks in, set the order, and download one file that reads like the project it belongs to.

Merge notebooks