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 30 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
Error message

Multiple definitions for x

Combine all definitions into a single reactive cell using a `begin ... end` block.

👀 Reading hidden code
x = 123
---
👀 Reading hidden code
Enter cell code...
68.6 μs
👀 Reading hidden code
66.2 μs
👀 Reading hidden code
66.1 μs
👀 Reading hidden code
65.6 μs
👀 Reading hidden code
65.3 μs
👀 Reading hidden code
64.8 μs
👀 Reading hidden code
using PlutoUI
239 ms
👀 Reading hidden code
using PlutoUI.ExperimentalLayout
145 μs
👀 Reading hidden code
using HypertextLiteral
: @htl, @htl_str

141 μs
👀 Reading hidden code
using Plots
3.8 s
Error message

UndefVarError: grid not defined

Stack trace

Here is what happened, the most recent locations are first:

  1. grid([	"hello" "world"
grid([
"hello" "world"
"xoxo" "fonsi"
])
👀 Reading hidden code
❔
WARNING: both ExperimentalLayout and Plots export "grid"; uses of it in module workspace#6 must be qualified
---
Error message

Multiple definitions for x

Combine all definitions into a single reactive cell using a `begin ... end` block.

myslider = @bind x Slider(1:12)
👀 Reading hidden code
---
Error message

Another cell defining x contains errors.

Try asking on Julia Discourse!
data = rand(x)
👀 Reading hidden code
---
Error message

Another cell defining x contains errors.

text = Text(repeat("pluto ", x))
👀 Reading hidden code
---
Error message

Another cell defining x, myslider and text contains errors.

You got this!
grid([
myslider embed_display(data)
text text
])
👀 Reading hidden code
---

To learn a bit more about PlutoUI.ExperimentalLayout, open https://github.com/fonsp/PlutoUI.jl/blob/main/src/Layout.jl in pluto

👀 Reading hidden code
254 μs