Platform
Resources
Pricing
Sign in
Get started
Simon Willison
Workspace
Fork
Public
By
Simon Willison
Edited
Oct 3, 2023
Insert cell
Insert cell
mod
=
import
(
"https://cdn.jsdelivr.net/npm/quickjs-emscripten@0.23.0/+esm"
)
Insert cell
{
let
result
;
await
mod
.
getQuickJS
(
)
.
then
(
(
QuickJS
)
=>
{
result
=
QuickJS
.
evalCode
(
"1 + 1"
,
{
shouldInterrupt
:
mod
.
shouldInterruptAfterDeadline
(
Date
.
now
(
)
+
1000
)
,
memoryLimitBytes
:
1024
*
1024
}
)
;
}
)
;
return
result
;
}
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
mod
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML