👀 Reading hidden code
👀 Reading hidden code
Enter cell code...
👀 Reading hidden code
👀 Reading hidden code
using HypertextLiteral
: @htl, @htl_str
EditMe (generic function with 1 method)
👀 Reading hidden code
function EditMe(initial)
@htl("""
<script>
const el = html`<input>`
el.value = init
const cm = currentScript.closest("pluto-cell").querySelector(".CodeMirror").CodeMirror
el.addEventListener("input", () => {
const old_value = cm.getValue()
const new_command = `EditMe(\${JSON.stringify(el.value)})`
cm.setValue(old_value.replace(/EditMe\\(\\".*\\"\\)/, new_command))
})
return el
</script>
""")
end
UndefVarError: kjasdlkfjasdlkjf not defined
Here is what happened, the most recent locations are first:
df = kjasdlkfjasdlkjf
👀 Reading hidden code
Multiple definitions for can_drink
Combine all definitions into a single reactive cell using a `begin ... end` block.
Everything is going to be okay!
can_drink = df["age"] .> 18
👀 Reading hidden code
Multiple definitions for can_drink
Combine all definitions into a single reactive cell using a `begin ... end` block.
Silly computer!
can_drink = map(zip(df["first name"], df["last name"])) do (first, last)
first * ", " * last
end
👀 Reading hidden code
[df; can_drink]
👀 Reading hidden code
syntax: incomplete: premature end of input
nb =
👀 Reading hidden code
UndefVarError: nb not defined
Here is what happened, the most recent locations are first:
nb(;x = 123)
👀 Reading hidden code
UndefVarError: nb not defined
map(nb, df)
👀 Reading hidden code