LivenessScope
LivenessScope is a Python class that manages the reference counting of tables and other query resources that are created within it.
Syntax
Parameters
None.
Returns
An instance of a LivenessScope class.
Examples
The following example uses function generated tables to produce a refreshing table that replaces its 5 rows every second. Encapsulating the function generated table inside of a liveness scope enables the safe deletion of data once the scope has been released. Releasing the scope stops table_from_func from updating, unless another scope or the UI still holds a reference to it. A table open in the UI keeps updating until you close it.