13.5.7 Save and Manage User-Defined Python Functions in the Script Repository
The OML4Py script repository stores user-defined Python functions for use with Embedded Python Execution functions.
Note:
The user-defined Python functions can be used outside of Embedded Python Execution. You can store functions and reload them back into notebooks or other user-defined functions.The script repository is a component of the Embedded Python Execution functionality.
The following topics describe the script repository and the Python functions for managing user-defined Python functions:
Topics:
- About the Script Repository
Use these functions to store, manage, and use user-defined Python functions in the script repository. - Create and Store a User-Defined Python Function
Use theoml.script.createfunction to add a user-defined Python function to the script repository. - List Available User-Defined Python Functions
Use theoml.script.dirfunction to list the user-defined Python functions in the OML4Py script repository. - Load a User-Defined Python Function
Use theoml.script.loadfunction to load a user-defined Python function from the script repository into a Python session. - Drop a User-Defined Python Function from the Repository
Use theoml.script.dropfunction to remove a user-defined Python function from the script repository. - Export a User-Defined Python Function
Use theoml.export_scriptfunction to export a user-defined Python functions from the OML4Py script repository to a destination file. - Import a User-Defined Python Function
Use theoml.import_scriptfunction to import a user-defined Python functions to the OML4Py script repository from a specified file.
Parent topic: Python API for Embedded Python Execution