By adding the @morph.load_data annotation, you can store the output result of the function in context.data and use it.

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

Parameters

name
string
required

The output result of the function specified by name is stored in context.data

使用例

@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