Public
Edited
Jul 8, 2023
Insert cell
Insert cell
Insert cell
[0, 90, 180, 270].map(h)
Insert cell
inp = ({ a: 1, b: 21 })
Insert cell
gen = {
while (true) {
yield inp;
}
}
Insert cell
{
if (!_.isEqual(this, gen)) {
mutable mute = gen;
set(viewof y, gen);
}

return gen;
}
Insert cell
mutable mute = null
Insert cell
viewof y = Inputs.input([])
Insert cell
y
Insert cell
// https://observablehq.com/@observablehq/synchronized-inputs
function set(input, value) {
input.value = value;
input.dispatchEvent(new Event("input", { bubbles: true }));
}
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