You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -212,10 +212,17 @@ The **Execute Python Script** module contains sample Python code that you can us
212
212
213
213
5. In the **Python script** text box, type or paste valid Python script.
214
214
215
+
> [!NOTE]
216
+
> Please be very careful when writing your script and make sure there is no syntax error, such as using a un-declared object or a un-imported module. Also pay extra attentions to the pre-installed module list. To import modules which are not listed, install the corresponding packages in your script such as
217
+
> ``` Python
218
+
> import os
219
+
> os.system(f"pip install scikit-misc")
220
+
> ```
221
+
215
222
The **Python script** text box is pre-populated with some instructions in comments, and sample code for data access and output. You must edit or replace this code. Be sure to follow Python conventions about indentation and casing.
216
223
217
224
+ The script must contain a function named `azureml_main` as the entry point for this module.
218
-
+ The entry point function can contain up to two input arguments: `Param<dataframe1>` and `Param<dataframe2>`
225
+
+ The entry point function must have two input arguments: `Param<dataframe1>` and `Param<dataframe2>`, even when these arguments are not used in your script.
219
226
+ Zipped files connected to the third input port are unzipped and stored in the directory, `.\Script Bundle`, which is also added to the Python `sys.path`.
220
227
221
228
Therefore, if your zip file contains `mymodule.py`, import it using `import mymodule`.
0 commit comments