2 ms·
The code in the intro blog post seems to be broken: Hyperdiv does this: def my_ui(hide_text=False): button("Button 1") if show_text: text("Hel
by ipsum2 3y ago
The code in the intro blog post seems to be broken:
Hyperdiv does this:
def my_ui(hide_text=False):
button("Button 1")
if show_text:
text("Hello")
button("Button 2")
- mondrian 3y agoYikes, what browser/os? Had a hard time repro-ing.
- SushiHippie 3y agoI think what they mean, is that the function has the argument hide_text, while the if statement uses the variable show_text which is not defined in this scope
- mondrian 3y agoAhh thank you! I fixed it.