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.
Make a note a notebook
Open a note, or create one with New note.
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.
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
Write Python in a code cell, for example:
import pandas as pd data = pd.DataFrame({"word": ["note", "page", "app"], "count": [5, 3, 2]}) dataChoose Run cell, or press Shift+Enter to run and move to the next cell. Run all runs every cell in order.
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.
Where Python runs
Python runs in your own browser, not on SeeMyNotes servers. That has consequences you should know:
It needs no setup, and your code and data do not leave your computer while you run.
It can use numpy, pandas and matplotlib. Other Python packages are not installable, and a cell that imports one fails with the usual
ModuleNotFoundError. There is no internet access from a notebook, so a cell cannot download data; paste small data into the notebook, or use cells that create it.If your code runs for too long, it is stopped and Python restarts. Variables are lost when Python restarts, and Restart Python does that on purpose.
Only the owner of a notebook runs code. Readers never run it and never download Python.
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:
Hide code from readers: readers see the output and can choose to show the code.
Hide as a solution until revealed: readers see the cell folded and choose to reveal it. See Teaching with notebooks.
Import and export
Open an .ipynb file opens a Jupyter notebook (
.ipynb, format 4) as a new notebook note. Cells or outputs that cannot be kept are counted and reported.Download as .ipynb downloads the notebook as
.ipynb.
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.
Convert notebook to text puts the notebook's Markdown and code into the page text (outputs are left out). The current text is saved in history first and the notebook is kept.
Remove notebook content deletes the notebook's cells and outputs. The last version stays in 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.