Public
Edited
Mar 23, 2024
11 stars
Insert cell
Insert cell
Insert cell
Insert cell
data = {
while (true) {
yield Promises.delay(300, Math.random());
}
}
Insert cell
Insert cell
switch_ = {
if (choice === "cell_1") {
viewof cell_1.value = data;
viewof cell_1.dispatchEvent(new Event("input", { bubbles: true }));
} else if (choice === "cell_2") {
viewof cell_2.value = data;
viewof cell_2.dispatchEvent(new Event("input", { bubbles: true }));
}
}
Insert cell
Insert cell
viewof cell_1 = Inputs.input(undefined)
Insert cell
cell_1
Insert cell
viewof cell_2 = Inputs.input(undefined)
Insert cell
cell_2
Insert cell
Insert cell
viewof choice = Inputs.select(["cell_1", "cell_2"], {
label: "Choose where to dataflow"
})
Insert cell
Insert cell
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