Skip to content

Compute app flow decorators

ComputeAppFlowDecoratorsMixin

register_widgets staticmethod

register_widgets(func)

Use this decorator to register widgets within the Compute app.

NOTE: This decorator should only be used in functional apps. It's ignored in stateful apps.

run_computation staticmethod

run_computation(func)

Use this decorator to run the Compute App.

Execution depends on whether the app is stateful or functional:

In `stateful` apps, the app is run whenever the user opens or interacts with the app.
In `functional` apps, the app is run when the user clicks the "Compute" button.