h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

hello_world.py in https://14946363-23cd-404a-a700-73e1a60ec29c.internal.dedicated.h2o.ai/#hello_world needs to add main to the import #2167

Closed wendycwong closed 8 months ago

wendycwong commented 8 months ago

I was trying to learn how to write an app and notice a problem with hello_world.py:

from h2o_wave import site, ui

The problem is with the import, it needs to import main as well. Quick fix is just to do this:

from h2o_wave import site, ui, main

mturoci commented 8 months ago

Hey @wendycwong!

The main import is missing because hello_world example is a Wave script and not a Wave app.