Definition pageJupyter Notebook definition

What Is an IPYNB File?

An IPYNB file is a Jupyter Notebook document saved as JSON. It can store Markdown explanations, code cells, metadata, execution counts, and saved outputs such as text results, tables, images, formulas, and charts.

Convert IPYNB to PDFCompare IPYNB and PY

IPYNB Tools editorial · Updated May 12, 2026

Extractable Summary

Definition
An .ipynb file is a Jupyter Notebook document saved as JSON.
Contains
Markdown cells, code cells, saved outputs, metadata, attachments, and kernel information.
Created by
Jupyter Notebook, JupyterLab, VS Code, Google Colab, Kaggle, GitHub, and course platforms.
Convert to PDF when
The reader needs a report with Markdown, charts, tables, formulas, and saved outputs.
Convert to PY when
The reviewer needs source code for Git, reuse, refactoring, or code-only submission.

Best kept as IPYNB when editing continues

notebook files preserve cell structure, metadata, and the interactive authoring workflow.

Best converted to PDF for readers

PDF is easier to submit, print, archive, and share with people who do not need a notebook editor.

Best converted to PY for code handoff

Python scripts are better for Git diffs, linting, packaging, and production cleanup.

Best converted to HTML for browser publishing

HTML keeps notebook output readable as a static web document.

What To Do With An IPYNB File

The right next format depends on whether you need to edit, present, review, or publish the notebook.

Inside the IPYNB format

A notebook file is not a binary document. It is structured JSON with a list of cells. Markdown cells hold narrative text, code cells hold source code and optional outputs, and metadata records kernel and language information.

That structure is why notebooks can be converted into several different formats. PDF uses the notebook as a document source, PY extracts source code, and HTML renders a browser-readable version.

  • Markdown cells
  • Code cells
  • Saved output cells
  • Kernel metadata

Why saved outputs matter

Charts, tables, printed results, and rich displays are often stored as output data in the notebook file. If those outputs are missing, a converter cannot magically recover them without executing the notebook.

For PDF and HTML export, run cells and save the notebook before conversion. For PY export, outputs usually do not matter because the target is source code.

IPYNB Anatomy

An IPYNB file is a structured notebook, not just a code file.

Format Choice

Choose the next format by audience and use case.

Recommended steps

  1. 1

    Identify the audience

    Decide whether the next reader needs to edit, run, review, or simply read the notebook.

  2. 2

    Check saved outputs

    Open the notebook and confirm whether charts, tables, and results are visible.

  3. 3

    Choose the target format

    Pick PDF for reports, PY for code, HTML for browser publishing, or IPYNB for continued editing.

  4. 4

    Convert and verify

    Preview the converted artifact before submitting, publishing, or archiving it.

Specs and limitations

IPYNB is best for
Interactive authoring, reproducible exploration, and mixed narrative-code work.
PDF is best for
Reports, homework, teaching notes, printed documents, and archival sharing.
PY is best for
Code review, production cleanup, scripts, Git diffs, and linting.
HTML is best for
Web publishing, browser review, and documentation pages.

FAQ

Is an IPYNB file a Python file?

descriptive

No. It can contain Python code, but the file itself is a JSON notebook document with cells, outputs, and metadata.

Why can an IPYNB file include charts?

mechanism

Notebook outputs can store image data, HTML tables, text results, and other rich display data after cells have run.

When should I convert IPYNB to PDF?

decision

Convert to PDF when the next reader needs a fixed report, assignment, teaching note, or archive instead of an editable notebook.

When should I convert IPYNB to PY?

decision

Convert to PY when the important artifact is source code and notebook outputs are no longer needed.