Code Editor
The Code Editor is where developers write UDFs using standard Python libraries and installed dependencies. The Editor tab contain functionality to organize code, create HTTP endpoints, and configure the UDF.

Editor
The editor contains the UDF's function declaration. Whenever code is updated, Fused automatically runs the function named udf
that is decorated with @fused.udf
and returns the output. Other UDFs declared in the editor are ignored unless referenced by the main udf
function.
Debug
The code editor highlights errors in the code and shows error logs to help debug.
Save a UDFs
UDFs show an asterisk (*
) next to their name when changes have been made since the last save. Clicking the "Save" icon saves the present state of the UDF under your account's UDFs.
If the "Save" icon appears greyed out, it means you're viewing a read-only version of the UDF. Make a copy to create a new version than can be modified and saved.

Utils Module
A Fused UDF can import Python objects from its accompanying utils Module, defined in the Utils Tab's code editor. You can import functions from it in your UDF with from utils import my_function
.
Here is an example in the Public Overture_Maps_example UDF:
@fused.udf
def udf(
bounds: fused.types.Tile,
release: str = "2025-01-22-0",
):
from utils import get_overture
gdf = get_overture(
bbox=bounds,
release=release,
)
return gdf

Auto, Tile, and File
On UDF Builder, UDFs can explicitly be set to run as Tile or File - or autoselect between the two if the bounds
object is typed.
