Two Ways to Get Embed
Quick: Copy a single cell's embed code
- Click the three dots (menu) in the top-right corner of any cell
- Select Copy embed code
- Paste the iframe snippet into your site
Here's an example of what it looks like:
<iframe
src="https://runalph.ai/embed/alph/05-embed-notebooks"
width="100%" height="400" frameborder="0"
style="border-radius: 8px; border: 1px solid #e5e7eb;">
</iframe>
That's it — one cell, one iframe.
Full control: Use the Embed Builder
- Open any notebook and click the Embed button in the top-right
- This opens the Embed Builder at https://runalph.ai/embed
- Configure which cells to show, theme, visibility options, and execution mode
- Copy the generated embed code
The Embed Builder also lets you set up managed execution — where your project powers the embed so visitors can run cells without their own account.
Embed URL Format
Embed URLs follow this pattern:
https://runalph.ai/embed/{orgSlug}/{notebookSlug}
For example, to embed the first two cells of this notebook:
Embed Options
Control what visitors see with URL parameters:
| Parameter | Example | Description |
|---|---|---|
cell | 3 | Show a single cell by index |
cells | 2-5 or 0,3,7 | Show a range or list of cells |
cellId | abc123 | Show a cell by its metadata ID |
theme | light, dark | Force a color theme (default: auto/inherit) |
showSource | 0 | Hide source code (show outputs only) |
showOutput | 0 | Hide outputs (show source only) |
embedConfig | config-id | Use a managed execution configuration |
Examples
Show only cell 4 with source hidden (output only):
https://runalph.ai/embed/alph/05-embed-notebooks?cell=4&showSource=0
Show cells 2 through 5 in dark mode:
https://runalph.ai/embed/alph/05-embed-notebooks?cells=2-5&theme=dark
Example: Embed This Notebook
Here's what it looks like to embed the chart cell from this very notebook. The cell below generates a treemap — you could embed just this cell's output on a blog post or documentation page.
The embed code for just that cell's output:
Use Case: Interactive Documentation
Instead of static code blocks in your docs, embed live notebook cells. Readers see real output — not a screenshot.
Before (static):
import pandas as pd
data = {
"endpoint": ["/notebooks", "/projects", "/orgs", "/auth"],
"method": ["GET", "GET", "GET", "POST"],
"avg_latency_ms": [45, 32, 28, 120],
"requests_24h": [15420, 8300, 3200, 22100],
}
df = pd.DataFrame(data)
df
After (embedded Alph cell): A live cell where readers see the actual rendered DataFrame and can open it in Alph to explore further.
Managed Execution
By default, embeds are read-only — visitors see source and outputs but can't run cells. With managed execution, your project powers the embed so visitors can execute cells directly.
How it works:
- Open the Embed Builder (
runalph.ai/embed) - Under Execution, switch to the Managed tab
- Select the organization and project to use
- Click Create embed configuration
- The generated embed code includes the config ID
Execution is proxied through Alph — your Jupyter token is never exposed to viewers. Only the notebook's existing cell sources can be executed (visitors can't inject arbitrary code).
You can pause, activate, or delete configurations from the Manage tab in the Embed Builder.
Platform Compatibility
Alph embeds work anywhere that supports iframes:
| Platform | Works? | Notes |
|---|---|---|
| Custom websites | Yes | Drop in the iframe |
| Notion | Yes | Use /embed block |
| Confluence | Yes | Use iframe macro |
| Mintlify / Docusaurus | Yes | HTML in MDX |
| Medium | Partial | Use embed.ly link |
| Substack | No | No iframe support |
Embeds are responsive and work on mobile.