To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 20 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
👀 Reading hidden code
@bind period html"<input type=range step=0.001>"
219 ms
👀 Reading hidden code
x = rand(5000)
40.5 μs
👀 Reading hidden code
y = sin.(x .* period)
41.2 ms
publish_to_js (generic function with 1 method)
👀 Reading hidden code
PlutoRunner.publish_to_js
13.2 μs
0.10.20.30.40.50.60.70.80.9
👀 Reading hidden code
"""

<script id="asdf">

await new Promise(r => {
setTimeout(r, 1000)
})

//const Plot = window.Plot = window.Plot ?? await import("https://cdn.skypack.dev/@observablehq/plot@0.1")
const Plot = await import("https://cdn.skypack.dev/@observablehq/plot@0.1")


return Plot.dot($(PlutoRunner.publish_to_js(x)), {x: $(PlutoRunner.publish_to_js(x)), y: $(PlutoRunner.publish_to_js(y))}).plot()


</script>


""" |> HTML
Deprecated, use `AbstractPlutoDingetjes.Display.published_to_js(x)` instead of `PlutoRunner.publish_to_js(x)`.
Deprecated, use `AbstractPlutoDingetjes.Display.published_to_js(x)` instead of `PlutoRunner.publish_to_js(x)`.
Deprecated, use `AbstractPlutoDingetjes.Display.published_to_js(x)` instead of `PlutoRunner.publish_to_js(x)`.
371 ms
using HypertextLiteral
👀 Reading hidden code
3.6 ms