# Notebooks: Code, Results and Notes Together

A notebook is a file of cells, code cells and Markdown cells, that keeps each cell's result saved under it, like a scientist's lab notebook; an .ipynb file holds all of it as JSON, notebooks suit exploring and showing data, and a .py file suits code you reuse and test.

![Cheat sheet: Notebooks: Code, Results and Notes Together](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/377baf3087e648f3b261a9e8a9c9ac7e.webp)

- Category: Data Analysis
- Level: Novice
- Tags: JSON, Markdown, Notebook (python), Notebook Cell, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-notebooks-what-and-why-cheat-sheet
