Published unlisted
Edited
Sep 8, 2020
2 stars
Insert cell
Insert cell
a = ({foo: 42})
Insert cell
inspect({bar: 71}, "b")
Insert cell
function inspect(value, name) {
const div = document.createElement("div");
div.style.backgroundColor = "#def";
div.style.margin = "0 -14px";
div.style.padding = "0 14px";
div.value = value;
new Inspector(div).fulfilled(value, name);
return div;
}
Insert cell
Inspector = (await require("@observablehq/inspector@3")).Inspector
Insert cell
viewof c = inspect({baz: 123}, "c")
Insert cell
c.baz
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more