@morph.funcのアノテーションをつけることでmorphで実行できる関数として登録ができます。
@morph.func
@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], })