Published
Edited
Oct 6, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof table1 = Inputs.table(rows)
Insert cell
Insert cell
datasetIds = {
const r = await fetch(`${url}/valid`);
const j = await r.json();
return j.valid.map((id) => ({ id }));
}
Insert cell
dataset = table.id
Insert cell
splitsLookup = {
const r = await fetch(`${url}/splits?dataset=${dataset}`);
const j = await r.json();
return d3.group(
j.splits,
(d) => d.config,
(d) => d.split
);
}
Insert cell
rows = {
const r = await fetch(
`${url}/first-rows?dataset=${dataset}&config=${config}&split=${split}`
);
const j = await r.json();
return j.rows.map((d) => d.row);
}
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