Hacker News new | past | comments | ask | show | jobs | submit login

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")




Yikes, what browser/os? Had a hard time repro-ing.


I 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


Ahh thank you! I fixed it.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: