Welcome to WebAssembly!
This is a first demo of (non-reactive) Pluto with a WASM backend! The Julia code in this notebook was executed entirely inside your web browser.
xxxxxxxxxx10-element Array{Float64,1}:
1.0
1.4142135623730951
1.7320508075688772
2.0
2.23606797749979
2.449489742783178
2.6457513110645907
2.8284271247461903
3.0
3.1622776601683795xxxxxxxxxx3
1
# hello from WASM!2
​3
sqrt.(1:10)(1, 100)xxxxxxxxxx1
1
extrema(1:100)Expr
head: Symbol =
args: Array{Any}((2,))
1: Symbol x
2: Expr
head: Symbol call
args: Array{Any}((3,))
1: Symbol +
2: Symbol y
3: Int32 123
xxxxxxxxxx1
1
sprint(dump, Meta.parse("x = y + 123")) |> Textplot (generic function with 1 method)xxxxxxxxxx16
1
plot(x, y) = """2
<script src="https://cdn.plot.ly/plotly-1.58.0.min.js"></script>3
​4
<script>5
const container = html`<div style="width: 100%;"></div>`6
​7
Plotly.newPlot( container, [{8
x: $(JSON.json(x)),9
y: $(JSON.json(y)),10
}], {11
margin: { t: 0 } 12
})13
​14
return container15
</script>16
""" |> HTMLxxxxxxxxxx4
1
let2
t = 1:1003
plot(t, sqrt.(t))4
endxxxxxxxxxx6
1
html"""2
<script>3
const {default: confetti} = await import("https://cdn.skypack.dev/canvas-confetti@1")4
confetti()5
</script>6
"""