Published
Edited
Jun 29, 2020
Insert cell
Insert cell
viewof x = html`<input type='range'>`
Insert cell
y = {
await Promises.delay(1000);
console.log(x);
return x * x;
}
Insert cell
z = {
let x = Generators.input(viewof x)
let last_number = null
for await (let number of x) {
yield { status: 'pending', number: last_number }
await Promises.delay(500)
last_number = number;
yield { status: 'finished', number: number }
}
}
Insert cell
Insert cell
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