Platform
Resources
Pricing
Sign in
Get started
Tanner Hobson
Dr. Tanner is a research professor at the University of Tennessee working towards making data science accessible using AI tools.
Workspace
Fork
Public
By
Tanner Hobson
Edited
Apr 28, 2023
Insert cell
Insert cell
viewof
INPUT
=
Inputs
.
textarea
(
{
rows
:
24
,
submit
:
true
,
}
)
;
Insert cell
MAPPING
=
{
const
forward
=
new
Map
(
)
;
const
reverse
=
new
Map
(
)
;
for
(
const
paragraph
of
INPUT
.
split
(
/\n\n\n/
)
)
{
const
[
x
,
y
]
=
paragraph
.
split
(
/\n\n/
,
1
)
;
forward
.
set
(
x
,
y
)
;
reverse
.
set
(
y
,
x
)
;
}
return
{
forward
,
reverse
}
;
}
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
INPUT
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
MAPPING
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML