{"slug": "building-a-jupyter-notebook-that-can-render-1m-cells", "title": "Building a Jupyter Notebook that can render 1M+ cells", "summary": "A notebook platform built to render 1M+ cells abandoned the traditional Jupyter model of pinning each workspace to a single server process, because that design lost in-memory edits on crashes and deploys and limited a busy workspace to one server's resources, according to the engineering account. The team reports that one early tester's 400-cell notebook could not be opened by its app, and that GitHub counted 2.4 million repositories using notebooks in 2025. The account argues that scaling out and handling large notebooks share one solution: servers that hold no notebook state in memory between requests, so any server can take any request and a 300 MB file need not be reloaded each time.", "body_md": "The Jupyter notebook is one of the most successful pieces of research software ever written. Fernando Pérez [started IPython in 2001](http://blog.fperez.org/2012/01/ipython-notebook-historical.html), as a physics grad student looking for a better interactive shell for his own work. A decade later, the Jupyter notebook was born, built on the same assumptions, with one person on one machine and one kernel running their code from one file.\n\nThose assumptions have outlived the era they came from. Fifteen years after the notebook first shipped, GitHub counted [2.4 million repositories](https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/) that used notebooks in 2025, and the people writing them have come to expect what the cloud gives the rest of their software. A notebook is now expected to open in the browser, be shared with a team, perhaps run on a GPU somewhere, and in the age of AI, probably have some sort of agent integration. The ecosystem has mostly kept up to date through various means, but underpinning it all is still the debt of the original assumptions made in the beginning, leaving much to be rethought by those trying to build new notebook solutions.\n\nA naive transposition of the local notebook model to hosted infrastructure falls apart immediately at scale. A hosted notebook has to scale out like other web services, with many servers that can each take a request for any notebook. Servers can then be added as load grows, or replaced in a deploy while people carry on working. It also has to survive one of those servers crashing halfway through a run or a save, with the work picked up elsewhere and the edits and outputs the server had already accepted kept safe. An early adaptation of our notebook for the cloud worked much more like a traditional Jupyter server, pinning each workspace to one server process, its *owner*, which held the workspace’s notebooks in memory. A busy workspace then had only the resources of one server to work with. Each deploy involved an error-prone handoff, and a crash lost whatever the old process held in memory—a non-starter.\n\nCollaboration makes each of those requirements harder. Several people can edit a notebook at once, with agents typing into the same cells and running code long after the tab that started them was closed. Their edits arrive through different servers, which still have to agree on what the notebook says. Notebook state cannot be tied to the lifetime of the browser or whichever server was last handling requests.\n\nThen there’s size. Notebooks get big mostly through their outputs, and agents, with their long jobs and heavy printing, make big ones more common. In the same way that [The Tail at Scale](https://research.google/pubs/the-tail-at-scale/) argues for designing around the slowest requests, we wanted to design around the biggest notebooks. One of our early testers came to us with a 400-cell notebook that our app couldn’t open. A notebook like that should open, edit, and run like a small one, while staying a real `.ipynb` that `git`, scripts, and agents can rewrite without going through Qualia.\n\nHosted notebook products usually give up one of these requirements. Products built on Jupyter tend to keep the file by keeping each notebook on one machine next to its kernel, the way [SageMaker’s JupyterLab](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-jl.html) runs on “a single Amazon EC2 instance”. Products built for teams give up the file instead, as Hex does by [keeping each notebook as rows across several Postgres tables](https://hex.tech/blog/a-pragmatic-approach-to-live-collaboration/).\n\nIt turns out that scaling out and handling big notebooks have the same solution. If any server can be handed any request, it can’t count on having seen a notebook before, so there’s little point in it holding one in memory between requests. It also can’t afford to load a 300 MB file every time someone presses a key. What’s left is to answer each request from the few bytes it needs, read from storage that all the servers share. Done that way, the work behind a request depends on what it touches, not on the size of the notebook, and the design that lets any of our servers handle a 400-cell notebook handles one with a million cells just as quickly.\n\nWe test the system against a million cells, which is far beyond the notebooks people actually write. A loop over the cells that goes unnoticed at 400 is slow enough at a million to show up straight away.\n\n## Keeping the file\n\nIt has become rather common, and for good reason, to leave the `.ipynb` format behind. One of those good reasons comes from the way Jupyter runs code. Cells are run in whichever order they’re clicked. Or more aptly, queued. They carry no notion of what computation depends on what previous computation. When someone asked for a dependency graph back in 2016, a maintainer answered, [“I don’t think we want to get into defining a DAG of cells.”](https://github.com/jupyter/notebook/issues/1175) With kernels for dozens of languages, the notebook interface has no access to a user’s variables, let alone to what depends on what. The result is hidden state, where the cells below a newly edited one can still hold whatever the old version computed. marimo and Pluto eschewed the `.ipynb` format entirely to solve this problem, [rerunning the cells that depend on the one that changed](https://docs.marimo.io/guides/reactivity/).\n\nHosted products tend to leave the file format behind for a different reason. Hiding the storage layer, and serving a notebook as its own fundamental unit of organisation instead of as a file, lets them choose whatever storage layer and underlying representation they want. With that freedom, they can make whatever optimisations they like, and only serialise the notebook to the `.ipynb` format when it’s needed for an export.\n\nWe gave up that freedom on purpose. In Qualia the unit of organisation is a *workspace*, whose contents are files, notebooks included. A workspace is a folder, whether on the desktop or, in the cloud, on a distributed file system mounted into the sandbox where the code runs. Files suit agents, which are highly fluent in CLI utilities like `grep` and `sed`, as well as people, who may get confused when some things are files and some things aren’t. When everything is a file, the editor, the collaboration features, and the agents become progressive enhancement on something that already works with every other file-based tool one might have locally. This, of course, also means that other programs can write to the file too—a notebook can be rewritten by a `git pull`, appended to by a script, or reformatted by another editor, without Qualia being involved.\n\nTo avoid having a single workspace owner, the server processes behind our load balancer, which we will hereafter refer to as *nodes*, must be interchangeable. One edit may be handled by one node and the next by another. In production, a workspace’s requests still go to the same node when they can to allow us to benefit from a warm cache, but the node holds no essential state of its own and another can be swapped in at the next request without issue. Whatever a node needs to handle a request comes from durable, shared storage, which is our source of truth when nodes serving different people need to access a notebook.\n\nAnother way to scale horizontally is to scale up the number of nodes serving notebooks but still pin state to each one—the owner model we wanted to avoid. This is how Cloudflare’s [Durable Objects](https://developers.cloudflare.com/durable-objects/) work (in reality, Durable Objects come with better semantics than, for example, an EC2 instance which can crash at any point, but I won’t get into that here). For a notebook in Qualia, the node owning it wouldn’t be the only writer, since a `git pull` or a script changes the file without going through it. The drafts, logs, and outputs it held would also need a durable home in Postgres regardless, which would leave it as the owner again, a cache in front of the real state with a lease to keep.\n\n## Indexing the file\n\nOn the disk, a notebook is encoded as JSON containing the code for each cell alongside the outputs that that code produced. File size is most commonly dominated by outputs, which can be rich figures or long logs of printed text or a dozen other things which tend to be larger than the typically small footprint of the plaintext code from which they were produced.\n\nCharts are stored in the file as PNGs encoded in base64 text, which can push their size into the tens of megabytes in some cases. In a 400-cell notebook of 300 MB, the code and markdown contents of the notebook take up only a tiny sliver of the file size, with outputs responsible for nearly all the rest. Moving the outputs somewhere else and leaving a reference behind would be very convenient, but the whole point is to be able to pass a notebook around as one file. Jupyter’s documentation calls a notebook [“a complete and self-contained record of a computation”](https://jupyter-notebook.readthedocs.io/en/5.2.2/examples/Notebook/What%20is%20the%20Jupyter%20Notebook.html), meaning a file sent to someone should work with its outputs included.\n\nOpening a notebook normally means parsing the whole file into objects and then sending it down to the browser to be displayed. JupyterLab optimizes this by only drawing the cells that are on screen, but by that point the whole file has been parsed on the server, sent to the browser, and held there in memory. Jupyter’s server reads notebooks with `nbformat`, which managed roughly 16 MB/s in our tests. At that rate, a 1 GB notebook takes more than a minute before a single byte has been sent to the browser, and sending a 300 MB notebook over a 100 Mbit/s connection adds another 24 seconds on top. With collaboration turned on, a Jupyter server also keeps each open notebook in memory as a shared document, which caps how many big notebooks one server can hold.\n\nThe alternative is to read only what we need when we need it: the cells on screen, the cell(s) being run, and the cells an agent is working on. Reading the JSON in parts opens a whole new can of worms, though, because the format only supports [sequential access](https://en.wikipedia.org/wiki/Sequential_access). That is, there’s no record in the file of where things are or how long they are. Starting from an arbitrary byte, it’s impossible to tell if that byte is inside a string or not. Formats designed for random access carry an index of their own: think zip files, which end with a list of where their entries start, or Parquet files, which have a footer describing their columns. An `.ipynb` file doesn’t have one, which means we must build the index ourselves.\n\nThe obvious tools for building the index are simply too slow and inefficient. Python’s `json.loads` builds the full tree in memory, which is what we’re trying to avoid. Streaming parsers like ijson never hold the whole file in memory, but they run at only 50 to 100 MB/s on structured JSON, and they report the values they find without the byte offsets where those values sit in the file. Those offsets are exactly what an index is made of. Calculating the offsets from the layout without parsing doesn’t work in general either, since the same notebook can be written in many valid ways. Indentation might be one, two, or four spaces, keys can come in any order, and an `é` can appear raw or as `\\u00e9`, each choice shifting the offsets of what comes after. What does help is that most of the notebooks we read were written by us, in Jupyter’s standard layout dating back to [November 2011](https://mail.python.org/pipermail/ipython-dev/2011-November/007269.html). Knowing the layout ahead of time gives a scanner two useful invariants. First, JSON doesn’t allow a raw newline inside a string, which means that in this layout the bytes `\\n  {\\n` can only occur where a cell starts. Cut at those points, the file splits into pieces that can be scanned on separate threads. Second, base64 has no quotes or backslashes in its alphabet. Getting past a 20 MB plot becomes a search for the next quote. With [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) instructions comparing 16 or more bytes in a single step, that search runs at gigabytes per second.\n\nOur scanner, *FastNB*, is written in Rust. It checks the file against JSON’s grammar, UTF-8, and the notebook schema, but unlike other stock JSON libraries, it builds no Python objects along the way, and parses incrementally. On an M4 Pro, with the file already in memory, it scans a typical notebook at about 900 MB/s on one thread and about 4.5 GB/s on eight, whereas Python’s `json.loads` manages only about 170 MB/s and builds a costly object tree that we just throw away anyway. A notebook made mostly of images is scanned at 6–7 GB/s.\n\nFastNB is also strict, and fails fast. When a file falls outside strict nbformat v4, because of a byte-order mark, an old nbformat version, or broken JSON, we fall back to Jupyter’s own, more compatible reader. Compatibility, as usual, comes at the cost of speed, but this being the fallback, we only eat this cost in the tiny minority of cases. We also save a copy in the standard layout that FastNB can index from then on.\n\nThe scan is the one step that grows with the file’s size. For each cell, we record where it starts and where its source, metadata, and outputs sit relative to that start. Once an index is built, it is stored in Redis at about 150 bytes per cell, so another node can use it without scanning the file again. Fetching the first page of cells is a single round trip of 0.2 to 0.5 ms, whether the notebook has ten cells or a million. After that, reading each cell takes one lookup plus a ranged read of its bytes. If the user scrolls straight to the bottom of the notebook, we can skip to just reading the end of the file, without reading any of what’s in the middle.\n\nEach index belongs to a single revision of the file, identified by its inode, length, modify time, and change time. The change time is included because a program can set a file’s modify time to any value, unlike its change time. Since those four values change whenever the file does, we know exactly [when our index is invalid](https://martinfowler.com/bliki/TwoHardThings.html). Redis can evict an index without issue too, because losing the index just requires scanning that revision again, which, as we’ve established, is very fast. An edit from outside Qualia shows up as a new revision, handled like a first open, while files saved by Qualia update the index automatically on write. An index for a given revision is therefore always either correct or missing, and a node can trust whichever one it finds in Redis.\n\n## Drafts\n\nSay a researcher, Alice, has a 10,000-cell notebook open and has just edited one of the first ten cells. While she’s scrolling down to see the rest, the file is rewritten by another process. Since only those first ten cells had been read, the old version of the rest is gone, along with the version her edit was based on. JupyterLab avoids the problem by reading the notebook into memory when it’s opened. Without a copy in memory, we need some durable reference for the state of the file when we opened it. It would be infeasible to duplicate the file on every open, since larger files take longer to copy and the work scales with the size of the notebook, which is precisely what we don’t want. A slow copy isn’t atomic either. Another program can write to the file while it’s being copied, leaving a copy that mixes two versions, and locking the file for the length of the copy would hold up every other writer in the meantime.\n\nThe solution for this is a convenient feature of modern file systems, both distributed and otherwise. Cloud workspaces live on [JuiceFS](https://juicefs.com/docs/community/architecture/), a distributed FUSE file system which stores the data as blocks of up to 4 MiB, each one an object in S3, with a separate database holding the metadata about which blocks make up each file. Because JuiceFS is [copy-on-write](https://en.wikipedia.org/wiki/Copy-on-write), a change to the middle of a file goes into new blocks, with the metadata updated afterwards to point at them. A copy of a file can therefore be pure metadata—a cheap-to-build second list of pointers to the same blocks.\n\nTo make these copies, we go through S3’s own API. A multipart upload can build one of its parts by copying a byte range out of another object. We patched our S3 gateway so that inside JuiceFS, a part made this way is copied as metadata. Opening a notebook copies the live file as a single part. Copying a 280 MB notebook this way stores zero new bytes in S3 and takes a single metadata write. On the desktop, `clonefile` on APFS and reflinks on Btrfs and XFS allow us to do similarly cheap copies using the same general copy-on-write technique.\n\nThat copy is the base of Alice’s *draft*. In the app, a draft appears to be what most people would call “unsaved state”, with a dirty marker and a Save button. It is actually durable though, so “unsaved”, in a technical sense, is not correct. If Alice closes the tab, or a node handling her requests dies, her draft will still be there when she comes back. A write from another process can no longer pull the notebook out from under her either, since the cells she hasn’t touched are read from the now-immutable base her edits were made against, not the original file.\n\nYou may be thinking it’s slow to read cells straight off a network file system, and usually, you’d be right. A ranged read through the gateway takes a millisecond or two, but since a full screen of cells only needs a handful of them even when scrolling rapidly through a notebook, those milliseconds end up being negligible. Requesting a page of cells comes in well under a single browser round trip. Because blocks don’t change once written, the gateway can also keep them in a 2 GiB disk cache, which speeds up reads from adjacent pages of cells—exactly the access pattern one would expect from a user scrolling through a notebook.\n\n## Storing edits\n\nBecause the base is immutable, edits can’t be written to it directly and must live elsewhere. We can’t write to the file when people type several keys a second, since each write would mean an upload plus a new revision with its own index. That would be slow, and would put a lot of unnecessary load on our systems. A draft therefore consists of the base plus an *overlay*, a record in Postgres of how the draft differs from the base, covering the order of the cells, their contents, and their outputs.\n\nSuppose Alice moves a cell to the top of a 10,000-cell notebook. If each cell had a database row holding its position, we’d have to write 10,000 rows before that move could happen. Text editors have long had the same problem with large files. The usual answer is a *piece table*, which the VS Code team explain in their post on [reimplementing their text buffer](https://code.visualstudio.com/blogs/2018/03/23/text-buffer-reimplementation). A piece table leaves the original file untouched and keeps a short list of the ways the current document differs from it. Because the file already has an order from the index, Postgres only has to store the cells that were inserted, moved, or deleted. Each of those is anchored “after this cell from the file” and ordered with a [fractional key](https://github.com/rocicorp/fractional-indexing), leaving room for another between any two. Opening a notebook writes no order rows, while moving that cell to the top writes one.\n\nText is harder than order, because a cell sometimes has several writers at once. Qualia lets multiple people and agents type into the same cell, with their edits landing on whichever nodes the load balancer picks. With [operational transformation](https://en.wikipedia.org/wiki/Operational_transformation), the approach behind Google Docs, a node would hold a lock on the cell while rewriting each edit against the ones that landed before it. Instead, a [CRDT](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type) gives each character a permanent identity. Two copies holding the same edits then show the same text, no matter the order the edits arrived in. The node only has to check an edit before storing it, and the browsers converge even when edits reach them late, twice, or out of order.\n\nEach cell can be efficiently represented by a Yjs document and an append-only log of updates in Postgres. As Alice types, her browser sends small batches of keystrokes over plain HTTP to an available node. In one short transaction, the node checks the update, takes the cell’s next sequence number, then appends it. At 3 to 5 ms, the transaction is shorter than the browser’s own round trip of 40 to 100 ms. Only after it commits does the node reply to Alice’s browser, with the update also going out on Redis to the nodes serving her colleague Bob and whoever else has the notebook open. Because the append happens before the reply, once a node has replied, the edit is committed in Postgres, and it stays there unless someone discards the draft.\n\nIf a deploy restarts the node that was relaying updates to Bob’s browser, update 42 can get lost before it reaches him. Since Redis Pub/Sub is fire-and-forget, that message is gone. The edit itself is still committed in Postgres. When 43 arrives right after 41, Bob’s browser sends its state vector, Yjs’s compact summary of the updates it has received, to a node, which replies with the update he missed. Losing a message in Redis entails a resync at worst, as the edit remains safe in Postgres. Redis can therefore run without durability.\n\nAgents write to the same log. The difference is that an agent doesn’t send keystrokes. Instead, it writes a new version of a cell based on text it read maybe a minute ago, during which Alice may have kept typing. After rebuilding the cell as it was when the agent read it, we diff the agent’s text against that version. The difference is appended as ordinary updates, which merge with Alice’s the same way another person’s typing would.\n\nOutputs are the final part of the overlay, kept as a numbered log of events per cell. Large outputs are stored under their SHA-256 hash, the same [content addressing](https://en.wikipedia.org/wiki/Content-addressable_storage) technique git uses, which also means a rerun that produces the same chart doesn’t store a second copy. Outputs that came from the file aren’t copied, because they’re byte ranges in the draft’s base that the index has already located.\n\n## Running cells\n\nRunning a cell is the part of a notebook that most ostensibly needs an owner. In Jupyter, one server holds the connection to the kernel, and the outputs for each cell come back through it. Our first cloud version ran cells the same way through the workspace’s owner. When an owner was replaced mid-run, its stream to the kernel broke. The run was then recorded as failed while the kernel carried on with it, which led an agent to run the cell a second time. Our kernels run on a separate machine, which we call the *box*, while the nodes talking to it come and go. Each cell’s output still has to end up in the right cell, once, even if the nodes handling the run are replaced partway through.\n\nThe first question is which text a run should use. Because Alice’s browser sends keystrokes in batches, some of what she typed may not have reached the server when she clicks Run. Her browser handles this by attaching the IDs of the edit batches it has sent but hasn’t heard back about yet. The node that receives the run waits until those batches have been committed, then hands the kernel the cell’s text as of that moment. The kernel therefore runs at least what Alice could see when she clicked, a guarantee known as *read-your-writes*, plus whatever a collaborator typed in the meantime. If her edits still haven’t arrived after ten seconds, the cell runs anyway, and she’s told that it ran without them.\n\nThe cell execution queue, in a naive implementation, might be stored in a way which scales with the size of the queue. Instead, in our design, we condense large queues like those created by Run All, preferring to hold a range and a cursor into the cell order, which makes queueing 10,000 cells the same single write as queueing ten. This is made possible because queueing patterns are predictable: users generally are not manually queueing thousands of cells, but they might run all the cells in a contiguous chunk of the notebook, allowing us to represent these efficiently as a range. The queue lives durably in Postgres, so it can be consumed by any node and is not tied to any one node’s lifetime.\n\nStarting the next cell might seem like it needs a coordinator, with a node noticing that a cell had finished before telling the box to start the next. That extra message isn’t needed though, because the box is already talking to a node at that moment. When a cell finishes, the box uploads its output, which the node records in a transaction. In the same transaction, the next cell is claimed, with the run instruction put in the response to the original request, thereby avoiding a second round trip, since a response had to be sent anyway. In our tests, trivial cells ran about 30 ms apart this way. Other job queues might be able to do the same with their completion calls (ours could, and it was nearly free).\n\nOutput coming back from the box has the same delivery problem as edits, in reverse. Kernel messages are held in an outbox on the box until they can be uploaded, in numbered batches, to whichever node the load balancer picks. Numbering lets a node drop a batch it has already seen, or ask for a resend when it finds a gap, the same trick as the edit logs. A box that was cut off can also show up late, still holding output from a kernel that has since been restarted. Each kernel start gets a fresh epoch number, carried on its messages, which works as a [fencing token](https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html) to keep a late box from writing a dead kernel’s output into the new one.\n\n## Saving\n\nA normal save writes the whole file back out, so changing a single line in a 300 MB notebook means uploading all 300 MB again. If our saves worked that way, keeping the `.ipynb` as the source of truth would undo most of the work described so far. By the time someone presses Save, though, most of the new file already exists. The unchanged cells are byte ranges in the draft’s base, which the index has already located, and the overlay tells us which cells changed.\n\nA save is built with the same multipart copy technique we used to make the draft. Each changed cell is uploaded as its own part, while each run of unchanged cells becomes a part copied by reference out of the base, which inside JuiceFS is nothing more than a metadata write. In one of our tests, inserting 1.5 KB into a 24 MiB notebook uploaded 1,516 bytes, and the whole save took about 95 ms. Plain S3 can copy ranges too, although it copies the actual bytes and requires each part to be at least 5 MiB. Each part also adds about 5 ms at the gateway, so for notebooks under roughly 8 MiB, a single upload is simply faster, and that’s what we use instead. We haven’t come across another tool that saves `.ipynb` files partially.\n\nSwapping the new file in is the harder part. In the time it takes to build it, the old file may have been changed by another program, or by a save that came through a different node, and with no owner to put saves in order, that ordering has to come from the file system itself. We build the new file out of sight, then publish it with a compare-and-swap rename inside JuiceFS’s metadata transaction, which only succeeds if the file at the real path is still the revision the save was based on. If it isn’t, the save is turned away instead of overwriting a change it never saw. Databases have used the same technique for decades under the name [shadow paging](https://en.wikipedia.org/wiki/Shadow_paging), and it works just as well when the “database” is a JSON file that `git` can also write to.\n\nA node can also die partway through a save, so before publishing anything, the save records its intent, followed by the digest of the new file. If the node crashes before publishing, the old file is still sitting where it was. If it crashes after, the recorded digest gives the next save enough information to finish the job. Either way, a crash can’t leave half a notebook behind.\n\nSince we lay out the new file ourselves, we can also write its index as we go, which means the file won’t need scanning the next time it’s opened. Once the file is published, the draft’s base becomes the file we just wrote, and the short list of differences that’s left over, mostly edits made while the save was in flight, is rebased onto it. A save turns out to be the one operation that touches all four layers from Figure 1: blocks go to S3, the index goes to Redis, and the rebased overlay goes to Postgres. In each case, the amount written depends on the size of the change, not the size of the notebook.\n\n## The browser\n\nFast servers won’t help much if the notebook still *feels* like it’s loading once it reaches the browser. The browser applies the same idea to what it fetches and what it draws. Cells are requested by position through the index, with large outputs arriving as references to be fetched when they’re needed. Because the scrollbar is measured in cells instead of pixels, it’s accurate before the cells have loaded. Dragging it halfway down lands on the middle cell. Only the cells on or near the screen exist in the page, with how much is loaded for them depending on scrolling speed. While someone is scrolling faster than they could read, at something like 4,000 pixels a second, cell data isn’t loaded. The real code editors are only mounted below about 750 pixels a second. What the browser holds and draws is set by the size of the screen, whatever the length of the notebook. A post on the frontend in more detail is coming soon.\n\n## Where we ended up\n\nWith all of this in place, a notebook in Qualia runs like any other horizontally scaled web service. We can add nodes as load grows and deploy in the middle of the day, and a node that crashes halfway through a run or a save doesn’t take the work it had accepted down with it. The wins people actually see are built on top of that. Alice, Bob, and an agent can all be typing in the same cell while a training run Alice started that morning keeps going through whatever deploys happen in the afternoon. Through all of it, the notebook is still a plain `.ipynb` in a workspace, where `git`, scripts, and the rest of a researcher’s tools can access it. We put a lot of work into allowing this sort of experience on a massive scale for our users so that they keep using Qualia to push the frontier of research. We hope you enjoy the experience, and we encourage you to try it out at [app.quadrillion.ai](https://app.quadrillion.ai).\n\n## Thanks\n\nBuilding (and rebuilding) our notebook has been a sort of pet project of mine, but I never could have done it without the incredible team we have here at Quadrillion. Thank you to the whole team for contributing feedback and fixes throughout the whole process. Further, I owe thanks to our early testers, especially the one whose 400-cell notebook got the bulk of this work started.\n\nFinally, for those who have gotten this far, it’s worth mentioning that we’re hiring! If you’re an ambitious engineer who wants to work on hard problems like this, please consider submitting an application at [careers.quadrillion.ai](https://careers.quadrillion.ai)!", "url": "https://wpnews.pro/news/building-a-jupyter-notebook-that-can-render-1m-cells", "canonical_source": "https://quadrillion.ai/blog/jupyter-at-any-scale", "published_at": "2026-12-01 19:55:11+00:00", "updated_at": "2026-12-01 20:17:44.860301+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["Jupyter", "IPython", "Fernando Pérez", "GitHub", "Qualia", "SageMaker", "Hex", "Amazon EC2"], "also_reported_by": [], "takeaway": "Keeping no notebook state in server memory between requests lets any server handle any request, so a 400-cell notebook that failed to open and a 300 MB file load like a small one while staying a real .ipynb that git and agents can rewrite.", "recommendation": {"advice": "Move notebook state out of server memory so any server can serve any request; the source says this both survives crashes and deploys and avoids reloading a 300 MB file on every open.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/building-a-jupyter-notebook-that-can-render-1m-cells", "markdown": "https://wpnews.pro/news/building-a-jupyter-notebook-that-can-render-1m-cells.md", "text": "https://wpnews.pro/news/building-a-jupyter-notebook-that-can-render-1m-cells.txt", "jsonld": "https://wpnews.pro/news/building-a-jupyter-notebook-that-can-render-1m-cells.jsonld"}}