---
title: "Serverless Jupyter Notebooks at Meta"
description: "Meta's Bento notebook platform now runs \"lite\" workloads directly in the browser using Pyodide on WebAssembly, skipping the slow remote-compute reservation step."
url: "https://swe.quest/articles/serverless-jupyter-notebooks-at-meta-852eae361d8319c8"
canonical: "https://engineering.fb.com/2024/06/10/data-infrastructure/serverless-jupyter-notebooks-bento-meta/"
source: "Meta Engineering"
published: "2024-06-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["webassembly","python","developer-tools","browsers"]
---

# Serverless Jupyter Notebooks at Meta

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-06-10, 4 min read, Case study. Original: [https://engineering.fb.com/2024/06/10/data-infrastructure/serverless-jupyter-notebooks-bento-meta/](https://engineering.fb.com/2024/06/10/data-infrastructure/serverless-jupyter-notebooks-bento-meta/)

## Summary

Meta's Bento notebook platform now runs "lite" workloads directly in the browser using Pyodide on WebAssembly, skipping the slow remote-compute reservation step. A kernel bridge lets the Pyodide kernel speak the Jupyter protocol like server kernels, a web worker keeps expensive kernel operations off the main thread, and middleware intercepts cell magics (%%sql, %%googlesheet, %%graphql, %%dataframe) in JavaScript and injects their results into the Python kernel. Uploads are handed off to async Tupperware jobs. The main limitation is that internal libraries not ported to Wasm are unavailable. Planned work includes auto-detecting lite workloads and falling back to server kernels when needed.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- Jupyter kernels
- WebAssembly basics ([easy posts on WebAssembly](https://swe.quest/tags/webassembly.md?difficulty=easy))
- Web Workers

## Keywords

Bento, Pyodide, Jupyter, WebAssembly, JupyterLite, Tupperware

## Related posts

- [How We Built the Turso Shell in the Browser](https://swe.quest/articles/how-we-built-the-turso-shell-in-the-browser-3b4c7642ce66be0b.md): Turso · 2025-10-14 · Medium · 9 min read · WebAssembly, SQLite, React, Frontend, Browsers
  Turso's SQLite-compatible database can run entirely in the browser via WebAssembly, persisting data to OPFS with no backend.
- [Gradio-Lite: Serverless Gradio Running Entirely in Your Browser](https://swe.quest/articles/gradio-lite-serverless-gradio-running-entirely-in-your-browser-3aaefd7b0bcd8644.md): Hugging Face · 2023-10-19 · Medium · 6 min read · WebAssembly, Python, Machine learning, Serverless
  Gradio-Lite (@gradio/lite) is a JavaScript library that runs Python Gradio apps entirely in the browser using Pyodide, the WebAssembly build of CPython, so no server is needed.
- [Introducing Turso in the Browser](https://swe.quest/articles/introducing-turso-in-the-browser-111a711a5e4d489d.md): Turso · 2025-10-08 · Medium · 3 min read · SQLite, WebAssembly, Browsers, Local-first & sync, JavaScript
  Turso, a from-scratch SQLite rewrite, now runs in the browser via WebAssembly as the npm package @tursodatabase/database-wasm, with a better-sqlite3-like API whose methods are all async because of OPFS.
- [Bringing Goodnotes to the web with Swift and WebAssembly](https://swe.quest/articles/bringing-goodnotes-to-the-web-with-swift-and-webassembly-91065a349822c565.md): Swift.org · 2026-06-01 · Medium · 7 min read · Swift, WebAssembly, Concurrency, Frontend, Performance engineering
  Goodnotes runs the same Swift code behind its iPad app in browsers by compiling it to WebAssembly with SwiftWasm, sharing 1.47M lines (66% of the 2.2M-line web codebase) including a rendering engine that targets Metal on iOS and WebGL on the web.
- [Pyodide Spin Out and 0.17 Release](https://swe.quest/articles/pyodide-spin-out-and-0-17-release-e4c73c7eb20b7f04.md): Mozilla Hacks · 2021-04-22 · Medium · 7 min read · WebAssembly, Python, JavaScript, Browsers, Open source
  Pyodide, CPython 3.8 compiled to WebAssembly for running Python in the browser, has spun out of Mozilla into an independent, community-governed project, and Mozilla is winding down Iodide.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
