Why
You wrote a notebook. Now you want it on your blog, in your docs, or inside a course. Alph embeds are a single<iframe> — paste it anywhere HTML works.
Quick Start
{org} with your organization slug and {notebook-slug} with the notebook slug. Both are visible in the notebook URL.
Only public notebooks can be embedded.
Embed Builder
The fastest way to configure an embed is the visual builder at runalph.ai/embed.Configure display
Choose which cells to show, pick a theme, and toggle source code or output visibility.
URL Parameters
Control what the embed shows by adding query parameters to the iframesrc.
| Parameter | Example | Description |
|---|---|---|
cell | cell=2 | Show a single cell by index (0-based) |
cells | cells=0,2-5,8 | Show specific cells — indices, ranges, or both |
cellId | cellId=abc123 | Show a cell by its metadata ID |
theme | theme=dark | Force light or dark. Omit to inherit from the parent page. |
showSource | showSource=0 | Hide source code (show outputs only) |
showOutput | showOutput=0 | Hide outputs (show source only) |
embedConfig | embedConfig={id} | Enable managed execution (see below) |
Examples
Show only cells 0 through 3 in dark mode, outputs only:Execution Modes
Embeds support two ways for viewers to run code.Standard
Viewers see the notebook’s saved source and outputs. Signed-in Alph users can connect their own project to execute cells directly. No extra configuration needed — this is the default.Managed
Your project powers the embed. Execution is proxied through Alph so your Jupyter credentials are never exposed to viewers. Only the notebook’s existing cell sources can be run.Open the Embed Builder
Go to runalph.ai/embed and switch the Execution section to Managed.
Select an org and project
Pick the organization and project that will back execution. The project must be active.
Security
- Only public notebooks can be embedded
- Managed mode never exposes your Jupyter token to viewers
- Only the notebook’s existing cell code can be executed — arbitrary code is rejected
- Execution is rate-limited per embed configuration
- Concurrent sessions are capped per configuration
Sizing Tips
The embed renders at whatever size the iframe allows. A few recommendations:- Full notebook:
width="100%" height="600"or larger - Single cell:
width="100%" height="300"is usually enough - Responsive: use CSS to make the iframe fill its container