Platform
Resources
Pricing
Sign in
Contact us
RJ Sheperd
Exploring people, places, and politics.
Workspace
Fork
Public
By
RJ Sheperd
Edited
Jun 5, 2023
Importers
Insert cell
Insert cell
Insert cell
cljs
=
function
(
...
args
)
{
// Depending on the usage `` or () args is an array of arrays or a an array of strings
var
code
,
context
,
s
=
args
[
0
]
;
if
(
s
&&
typeof
s
.
valueOf
(
)
===
"string"
)
{
code
=
args
[
0
]
,
context
=
args
[
1
]
;
}
else
{
code
=
args
[
0
]
[
0
]
;
}
return
sci
.
toJS
(
sci
.
evalString
(
code
,
{
bindings
:
context
}
)
)
;
}
Insert cell
sci
=
require
(
"@borkdude/sci"
)
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cljs
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sci
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML