@mike Thanks for the references. I used to be able to do something like this:
<script type="module">
import {Inspector, Runtime} from "https://unpkg.com/@observablehq/notebook-runtime@1?module";
import notebook from "https://api.observablehq.com/d/xxxxxxxxx.js";
const renders = {
"custom_style": "#style",
"viewof person_list": "#person_list",
"viewof input_parameters": "#input_parameters",
"grid": "#grid",
"pdf": "#pdf",
"print": "#print",
};
Runtime.load(notebook, (variable) => {
const selector = renders[variable.name];
if (selector) {
return new Inspector(document.querySelector(selector));
} else {
return true;
}
});
</script>
But it is failing with version 3. I’ll re-read the documentation – perhaps I missed a usage change. The current error I’m getting is:
viewof person_list = RuntimeError: select is not defined
where person_list
is the thing I want to render and select
is the typical import from import {select, date, button} from "@jashkenas/inputs"
which person_list
depends on.