Notebooks

Turn a note into a notebook with text and Python code cells. Python runs in your browser, results are saved with the note, and readers see them without running anything.

A notebook is a note made of cells: text cells written in Markdown and code cells written in Python. You run a code cell and its result, such as a table or a chart, appears right below it and is saved with the note. It is the same format data scientists use in Jupyter, inside a note you can share, publish and sell like any other.

A notebook: a text cell, then a code cell and its chart.

Make a note a notebook

  1. Open a note, or create one with New note.

  2. In the mode switch at the top, choose Notebook. On a phone, the switch is one button showing the current mode; open it to choose.

  3. Add cells with Add code cell and Add text cell.

Each mode of a note keeps its own content, so switching to Notebook does not erase your page text or your app. A dot on a mode marks that it has content.

Run Python

  1. Write Python in a code cell, for example:

    import pandas as pd
    data = pd.DataFrame({"word": ["note", "page", "app"], "count": [5, 3, 2]})
    data
  2. Choose Run cell, or press Shift+Enter to run and move to the next cell. Run all runs every cell in order.

  3. The first run says Starting Python…. Python starts in your browser, so there is a short wait, and after that it is ready.

Outputs include printed text, tables, rich results and charts. A chart made with matplotlib is saved as an image.

Run a cell and its output appears below it.

Where Python runs

Python runs in your own browser, not on SeeMyNotes servers. That has consequences you should know:

Keyboard shortcuts are listed under Keyboard shortcuts. Press Enter to edit the selected cell and Escape to stop editing.

Cells

Each cell has a menu with Move up, Move down, Duplicate, Delete cell, Make it a text cell or Make it a code cell, and Clear output. Text cells are Markdown: double-click one or press Enter to write.

Two cell options matter when you share a notebook:

Import and export

Limits

A notebook has caps on the number of cells, its total size and the size of one saved output. An output too large to save is shown only until you leave the page. A cell also has a time limit. The editor tells you when you reach one.

Versions and conversion

A notebook has its own history, separate from the note's text history, and restoring one never touches the other. See Versions and history.

Who sees a notebook

A notebook is a note, so its visibility works exactly as for any note: private, followers, groups, specific people or public. Readers can open it as a view of the note. See Views readers get.

Related pages