Viewing a saved revision (read-only)
3b52b424f62a4a08b3fb3e252c3535f6
Embedded Observablehq Minimal Cell
This example demonstrates embedding a single Observable notebook cell into a standalone HTML page. It loads a specific value named "calc" from an Observable notebook using the Observable Runtime API and renders it into a designated container via `Inspector.into`. The page retrieves the notebook definition from the Observable API URL, while the runtime is imported from the jsDelivr CDN. This approach minimizes the embedded footprint to roughly five kilobytes, compared to the full notebook’s larger size, showcasing a lightweight integration method.
AI-generated descriptionTest to see how efficient embedding observable stuff is. A simple calculated value.
Total = ~85 KB
Vishub Basis = ~30 KB
Observablehq = ~55 KB
OHQ-Basis = ~50 KB
This Cell = ~5 KB