H2O Wave v0.9.0+ introduces significant improvements to application performance and concurrency, and brings us closer to a v1.0 release. v1.0 will include the ability to increase the number of worker processes to scale apps, while preserving the simplicity of the Wave API.
Among other changes, the Wave server executable
wave is now called
waved.exe), and the
h2o-wave Python package ships with a new CLI named
In versions <= v0.8.0, a skeleton app looked like this:
The above app could be run like this:
In versions v0.9.0+, a skeleton app looks like this:
listen(route)has been replaced by an
@app(route)decorator on the
mainneeds to be imported into the file (but you don't have to do anything with the symbol
mainother than simply
The above app can be run using
wave run, built into the new
wave command line interface.
wave run command runs your app using live-reload, which means you can view your changes live as you code, without having to refresh your browser manually.
To run your app without live-reload, simply pass
To run your app using an ASGI server like uvicorn, append
:main to the