Published unlisted
Edited
Nov 19, 2019
Insert cell
Insert cell
Insert cell
fileInput = html`<input type=file accept="image/*">`
Insert cell
defaultFile = FileAttachment("roots-eq-sizescale.png")
Insert cell
image = {
yield defaultFile.arrayBuffer();
for await (let file of Generators.input(fileInput)) {
yield file.arrayBuffer();
}
}
Insert cell
image.byteLength
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