Embedded Observablehq Minimal Cell
✓ Published1🌍 Public
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
MIT Licensed