Gist b198922e4837fa3d96af13fb27d5c723
✓ Published0🌍 Public
Mmbostock
Last edited Oct 31, 2018
Created on Oct 30, 2018
This example demonstrates how to embed an Observable notebook into a standalone HTML page using the Observable Runtime and Inspector APIs. The code loads a notebook, overrides its “subject” cell to output the string “Fred,” and renders the resulting “greeting” cell into a page element. It uses the `Runtime.load` method, `Library`, and `Inspector` classes from the `@observablehq/notebook-runtime` module, fetching the notebook from `api.observablehq.com`. The visualization shows dynamic text replacement within a live notebook module.
AI-generated description