Sandboxed Code Execution
Inside Modal Notebooks: How we built a cloud GPU notebook that boots in seconds

Inside Modal Notebooks: How we built a cloud GPU notebook that boots in seconds

9/16/2025

What this post added

This post details the engineering behind Modal Notebooks, focusing on the integration of Modal Sandboxes with the Jupyter kernel protocol. Key contributions include the `modal-kernelshim` daemon for translating kernel messages to HTTP, a lazy-loading container filesystem for rapid image startup, and the use of VolumeFS for global, mutable storage. It also describes the implementation of real-time collaboration using Rushlight and Redis Streams, and the integration of LSP (Pyright) and AI completion (Claude 4, Zed's Zeta model) into the editor.

Read the original post ↗