Unlisted
Edited
Nov 6, 2024
Insert cell
Insert cell
mutable state_data = ({})
Insert cell
viewof local_data = Inputs.file({
label : "Load Project",
multiple : false,
//reduce: (f) => swap_data(f.json()),
})
Insert cell
function swap_data(data) {
mutable state_data = data;
return state_data
}
Insert cell
local_data,
update_local(local_data)
Insert cell
async function update_local(local_data) {
return local_data === null ? template_data : swap_data(local_data.json());
}
Insert cell
template_data = ({
name: "Sample Project",
description: "Initial project data",
status: "active"
})
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