Variables, outputs and caching
How blocks share variables, how results are saved, and how to inspect them.
Results are saved
When a block runs, Zerve saves its outputs and variables. Blocks connected after it read those saved results, rather than rerunning the blocks before them.
You can rerun one block without rerunning everything before it
Earlier results are already saved
Running a block that hasn't changed is quick
Zerve uses its saved results. Use Force run to run it again anyway.
You can inspect any step afterwards
Every block's results are kept
Variables are saved in common formats, such as Parquet for dataframes, so they pass cleanly between Python, R and SQL. See Language interoperability.
Seeing a block's results
After a block runs, its output appears under it, and its variables are listed with it.
Code & Variables mode
For a fuller view, open a block in Code & Variables mode, from the block toolbar, or with Shift+Alt+F (Windows) or ⇧+⌥+F (Mac). It shows:
The input variables coming into the block
The outputs coming out of it: variables, dataframes and charts
Built-in viewers for dataframes and charts
From Code & Variables mode, you can move to the previous or next block.
Using variables from other blocks
A block can use variables from any block connected before it. To use a variable from a block that isn't connected, attach the variable to the block, from Code & Variables mode.
Functions can be passed between blocks, as well as data.
Last updated
Was this helpful?
