Published
Edited
Feb 7, 2022
Insert cell
Insert cell
file1 = {
let fileHandle;
[fileHandle] = await window.showOpenFilePicker();
return fileHandle
// const file = await fileHandle.getFile();
// const contents = await file.text();
// return contents;
}
Insert cell
file1.name
Insert cell
dir = {
let d = []
const dirHandle = await window.showDirectoryPicker();
for await (const entry of dirHandle.values()) {
d.push(entry.kind, entry.name);
}
return d
}
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