Skip to content

Commit 8d3bc39

Browse files
authored
Merge pull request #112817 from likebupt/update-execute-python-r-0427
Update execute python r 0427
2 parents 6012405 + ac76321 commit 8d3bc39

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

articles/machine-learning/algorithm-module-reference/execute-python-script.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: reference
99

1010
author: likebupt
1111
ms.author: keli19
12-
ms.date: 03/10/2020
12+
ms.date: 04/27/2020
1313
---
1414
# Execute Python Script module
1515

@@ -145,6 +145,8 @@ The pre-installed packages are:
145145
import os
146146
os.system(f"pip install scikit-misc")
147147
```
148+
> [!NOTE]
149+
> If your pipeline contains multiple Execute Python Script modules and need same packages which are not in the pre-installed list, please install the packages in each module respectively.
148150
149151
## Upload files
150152
The **Execute Python Script** supports uploading files using [Azure Machine Learning Python SDK](https://docs.microsoft.com/python/api/azureml-core/azureml.core.run%28class%29?view=azure-ml-py#upload-file-name--path-or-stream-).
@@ -213,11 +215,11 @@ The **Execute Python Script** module contains sample Python code that you can us
213215
5. In the **Python script** text box, type or paste valid Python script.
214216

215217
> [!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-
> ```
218+
> Please be very careful when writing your script and make sure there is no syntax error, such as using un-declared objects or un-imported modules. Also pay extra attention to the pre-installed module list. To import modules which are not listed, install the corresponding packages in your script such as
219+
> ``` Python
220+
> import os
221+
> os.system(f"pip install scikit-misc")
222+
> ```
221223
222224
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.
223225

articles/machine-learning/algorithm-module-reference/execute-r-script.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: reference
99

1010
author: likebupt
1111
ms.author: keli19
12-
ms.date: 03/10/2020
12+
ms.date: 04/27/2020
1313
---
1414

1515
# Execute R Script
@@ -38,6 +38,8 @@ azureml_main <- function(dataframe1, dataframe2){
3838
return(list(dataset1=dataframe1, dataset2=dataframe2))
3939
}
4040
```
41+
> [!NOTE]
42+
> If your pipeline contains multiple Execute R Script modules and need same packages which are not in the pre-installed list, please install the packages in each module respectively.
4143
4244
## Installing R packages
4345
To install additional R packages, use the `install.packages()` method. Packages are installed for each **Execute R Script** module, and aren't shared across other **Execute R Script** modules.
@@ -136,8 +138,8 @@ Datasets stored in the designer are automatically converted to an R data frame w
136138
1. In the **R script** text box, type or paste valid R script.
137139

138140
> [!NOTE]
139-
> Please be very careful when writing your script and makes sure there is no syntax error, such as using a un-declared variable or a un-imported module or function. Also pay extra attentions to the pre-installed package list in the end of this document. To use packages that are not listed, please install them in your script such as `install.packages("zoo",repos = "http://cran.us.r-project.org")`
140-
141+
> Please be very careful when writing your script and makes sure there is no syntax error, such as using un-declared variables or un-imported modules or functions. Also pay extra attention to the pre-installed package list in the end of this document. To use packages that are not listed, please install them in your script such as `install.packages("zoo",repos = "http://cran.us.r-project.org")`
142+
141143
> [!NOTE]
142144
> Functions dependant on X11 library such as "View" are not supported because X11 library is not pre-installed.
143145

0 commit comments

Comments
 (0)