The annotation @morph.load_data allows the output results of the function to be stored and used in context.data.

@morph.load_data(
    name: str,
)
def func_name(context):
	# write your code here

Parameters

name
string
required

Stores the output result of the function specified by name in context.data.

Example

@morph.func
@morph.load_data("example_sql_cell")
def get_data_from_database(context):
	sql_result_df = context.data["example_sql_cell"]
    # write your code here using sql_result_df
	return sql_result_df