Skip to content

Instantly share code, notes, and snippets.

@devdutta
Last active June 25, 2019 13:09
Show Gist options
  • Save devdutta/e4d7c19a0bbf403cff1e154443d391d6 to your computer and use it in GitHub Desktop.
Save devdutta/e4d7c19a0bbf403cff1e154443d391d6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<body>
<script type="module">
// Load the Observable runtime and inspector.
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
// Your notebook, compiled as an ES module.
import notebook from "https://api.observablehq.com/@devdutta/gdp-per-capita-ppp-inflation-ajusted-1990-2017.js?v=3";
// Load the notebook, observing its cells with a default Inspector
// that simply renders the value of each cell into the provided DOM node.
new Runtime().module(notebook, Inspector.into(document.body));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment