👀 Reading hidden code
using PlutoUI
Note: you are not supposed to bind to the same variable multiple times - this might not be supported in the future.
👀 Reading hidden code
MethodError: no method matching PlutoUI.BuiltinsNotebook.Slider(::UnitRange{Int64}, ::Int64)
Closest candidates are:
PlutoUI.BuiltinsNotebook.Slider(::AbstractVector{T}, ::T, ::Bool) where T at ~/.julia/packages/PlutoUI/5zDF8/src/Builtins.jl:141
PlutoUI.BuiltinsNotebook.Slider(::AbstractVector{T}; default, show_value, max_steps) where T at ~/.julia/packages/PlutoUI/5zDF8/src/Builtins.jl:158
Here is what happened, the most recent locations are first:
- macro expansionfrom This cell: line 125
- Show more...
👀 Reading hidden code
md"
$(@bind s Slider(1:10))
$(@bind s Slider(1:10,4))
$(@bind s Slider(1:10,default=11))
$(@bind s Slider(1:0.01:10,4))
"
1
👀 Reading hidden code
md"
$(@bind n NumberField(1:10))
$(@bind n NumberField(1:10,4))
$(@bind n NumberField(1:10,default=11))
$(@bind n NumberField(1:0.01:10,4))
"
👀 Reading hidden code
4
n
👀 Reading hidden code
begin
bad_str = "Very \"cool\" <b>yo</b> & wow\""
md"""
$(@bind b Button())
$(@bind b Button(bad_str))
"""
end
👀 Reading hidden code
"Very \"cool\" <b>yo</b> & wow\""
b
👀 Reading hidden code
md"
$(@bind c CheckBox())
$(@bind c CheckBox(true))
$(@bind c CheckBox(default=true))
"
👀 Reading hidden code
true
c
👀 Reading hidden code
md"
$(@bind t TextField())
$(@bind t TextField(default=bad_str))
$(@bind t TextField((3,3)))
"
👀 Reading hidden code
""
t
👀 Reading hidden code
begin
eq = md"$\frac{\pi^2}{6}$"
img = md""
md"""
$(@bind se Select(["a","b"]))
$(@bind se Select(["c" => 123, "d" => eq, "e" => img]))
"""
end
# (this shouldn't actually show the image/equation unfortunately)
👀 Reading hidden code
"c"
se
👀 Reading hidden code
md"
$(@bind cl Clock())
$(@bind cl Clock(20.0))
$(@bind cl Clock(5.0, true))
"
👀 Reading hidden code
1
cl
👀 Reading hidden code
UndefVarError: @js_str not defined
Here is what happened, the most recent locations are first:
- from :0
- #macroexpand#51from expr.jl:115
- macroexpandfrom expr.jl:114
js""
👀 Reading hidden code