Building a Jupyter Notebook that can render 1M+ cells
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Quadrillion's Alex Foster describes how the company's hosted notebook, Qualia, keeps a plain .ipynb file yet opens huge notebooks quickly. A Rust scanner, FastNB, builds a per-cell byte index stored in Redis, so requests read only the cells they need. Drafts are copy-on-write copies of the file on JuiceFS, with edits kept in Postgres via Yjs CRDTs. The speed figures (about 900 MB/s on one thread, versus 170 MB/s for json.loads) come from the authors' own M4 Pro tests, with no independent source.