@morph.funcのアノテーションをつけることでmorphで実行できる関数として登録ができます。
Parameters
string
default:"関数名"
処理名, 他のファイルから呼び出す時のエイリアスとしても使える。
string
処理の説明を記述できる
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
@morph.funcのアノテーションをつけることでmorphで実行できる関数として登録ができます。
@morph.func(
name: str | None = None,
description: str | None = None,
)
def func_name(context):
# write your code here
@morph.func(
name="example_python_cell",
description="Example Python cell",
)
def get_data_from_database(context):
# write your code here
return pd.DataFrame({
"name": ["John", "Doe"],
"age": [20, 30],
})