---
title: "Scheduling Jupyter Notebooks at Meta"
description: "Meta schedules Bento (Jupyter) notebooks through a custom Dataswarm operator, BentoOperator, which keeps data lineage visible and privacy enforced even though notebook code is arbitrary."
url: "https://swe.quest/articles/scheduling-jupyter-notebooks-at-meta-0caaff9caa37a0f3"
canonical: "https://engineering.fb.com/2023/08/29/security/scheduling-jupyter-notebooks-meta/"
source: "Meta Engineering"
published: "2023-08-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["data-pipelines","scheduling","privacy","python"]
---

# Scheduling Jupyter Notebooks at Meta

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-08-29, 5 min read, Case study. Original: [https://engineering.fb.com/2023/08/29/security/scheduling-jupyter-notebooks-meta/](https://engineering.fb.com/2023/08/29/security/scheduling-jupyter-notebooks-meta/)

## Summary

Meta schedules Bento (Jupyter) notebooks through a custom Dataswarm operator, BentoOperator, which keeps data lineage visible and privacy enforced even though notebook code is arbitrary. Structured SQL and upload cells are executed by transparent Dataswarm operators outside the notebook and swapped for pandas read\_csv/to\_csv calls. This lets the notebook itself run in a network-isolated ephemeral container, after which the outputs are uploaded to the warehouse. Scheduling is limited to ETL and analysis notebooks without other side effects, tied to a purpose policy zone, and goes through code review with the notebook checked into source control. Planned work covers more data sources, parameterized notebooks and event-based scheduling.

Written by swe.quest, not by the author.

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

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- Jupyter notebooks
- Airflow-style ETL pipelines ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- data lineage

## Keywords

Bento, Jupyter, Dataswarm, BentoOperator, Apache Airflow, Papermill, pandas

## Related posts

- [SQL Notebooks: Combining the power of Jupyter and SQL editors for data analytics](https://swe.quest/articles/sql-notebooks-combining-the-power-of-jupyter-and-sql-editors-for-data-analytics-bf9e2bd8ffb65a89.md): Meta Engineering · 2022-04-26 · Medium · 7 min read · SQL, Analytics & OLAP, Developer tools, Identity & auth
  Meta's SQL Notebooks extends its Daiquery SQL editor with notebook-style named cells that reference each other as tables, compiling dependent cells into self-contained CTE queries run on distributed backends like Presto and Spark rather than on a local machine.
- [Serverless Jupyter Notebooks at Meta](https://swe.quest/articles/serverless-jupyter-notebooks-at-meta-852eae361d8319c8.md): Meta Engineering · 2024-06-10 · Medium · 4 min read · WebAssembly, Python, Developer tools, Browsers
  Meta's Bento notebook platform now runs "lite" workloads directly in the browser using Pyodide on WebAssembly, skipping the slow remote-compute reservation step.
- [Data logs: The latest evolution in Meta’s access tools](https://swe.quest/articles/data-logs-the-latest-evolution-in-meta-s-access-tools-614b48244a60ed88.md): Meta Engineering · 2025-02-04 · Medium · 11 min read · Data pipelines, Privacy, Analytics & OLAP, System design, Resilience
  Meta serves per-user data logs from its Hive data warehouse, which cannot handle per-user point queries, by batching many Download Your Information requests into one full-table scan.
- [Run GPU jobs from Airflow with Modal](https://swe.quest/articles/run-gpu-jobs-from-airflow-with-modal-53fdd2aef1aa5c6f.md): Modal · 2024-06-20 · Medium · 7 min read · Data pipelines, Scheduling, Serverless, Python, ML platforms
  Airflow DAGs can offload GPU-heavy tasks to Modal instead of standing up Celery or Kubernetes executors, using a two-step pipeline that scrapes Reddit ELI5 questions and answers them with an LLM as the example.
- [Policy Zones: How Meta enforces purpose limitation at scale in batch processing systems](https://swe.quest/articles/policy-zones-how-meta-enforces-purpose-limitation-at-scale-in-batch-processing-615adcc0c88f4c90.md): Meta Engineering · 2025-07-23 · Medium · 20 min read · Privacy, Data pipelines, Identity & auth, SQL
  Meta's Policy Zones, part of its Privacy Aware Infrastructure, applies information flow control to enforce purpose limitation across an exabyte-scale data warehouse.

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)
