Platform
Resources
Pricing
Sign in
Get started
Brett Cooper
In New Zealand being kid of human. We might make mistakes but we will make other things too. - Michael Joseph Savage
Workspace
Fork
Published
By
Brett Cooper
Edited
Feb 7, 2022
Insert cell
1
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.
Try it for free
Learn more
Fork
View
Export
Edit
Show 1 comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
file1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dir
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML