Platform
Resources
Pricing
Sign in
Get started
Tom MacWright
hi!
Workspace
Fork
Published unlisted
By
Tom MacWright
Edited
Nov 19, 2019
Fork of
Default file content with file attachment
1
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fileInput
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
defaultFile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML