Jupyter notebooks
A .ipynb file opens on the blob page as its cells and saved outputs (src/web/render/notebook.ts). Nothing is run.
Markdown cells go through the forge's Markdown renderer. A code cell is a pre headed In [n]: with its execution count. Output text (streams, plain text, errors with their colour codes removed) is escaped text. PNG and JPEG outputs are pictures, drawn only when the base64 is well-formed and the picture is under 1 MB, and shrink to fit a phone; a larger one is a note, "Image output over 1 MB, not drawn". HTML and script outputs are shown as escaped text and never inserted or run. Other output kinds are skipped.
A notebook over 2 MB shows the source view with the sentence "This notebook is over 2 MB, so it is not drawn as cells (this one is N MB)", and Raw and Download are in the header. One that is not valid JSON, or one with no cells list shows the ordinary source view with one line saying why. At most 2,000 cells, and 2,000 outputs per cell, are drawn. ?view=source, Raw and Download show the bytes untouched.
The terminal workspace reads the same cells (src/tui/screens/workspace_kinds.ts, from parseNotebook): code dimmed, errors in the danger colour, pictures as [image output not shown], an over-1-MB picture as the same note. Nothing is run there either. Classes live in docs/design/areas/render.md.