Skip to content

Commit 1e84c80

Browse files
authored
Merge pull request #107426 from likebupt/update-upload-files-in-script
add grey boarder for screenshots, and fix the indentation
2 parents ec29662 + 8032495 commit 1e84c80

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def azureml_main(dataframe1 = None, dataframe2 = None):
110110
```
111111

112112
After the pipeline is submitted successfully, you can preview the image in the right panel of the module
113+
114+
[!div class="mx-imgBorder"]
113115
![Uploaded-image](media/module/upload-image-in-python-script.png)
114116

115117
## How to configure Execute Python Script

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

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ azureml_main <- function(dataframe1, dataframe2){
9494
```
9595

9696
After the pipeline is submitted successfully, you can preview the image in the right panel of the module
97+
98+
[!div class="mx-imgBorder"]
9799
![Uploaded-image](media/module/upload-image-in-r-script.png)
98100

99101
## How to configure Execute R Script
100102

101103
The **Execute R Script** module contains sample code that you can use as a starting point. To configure the **Execute R Script** module, provide a set of inputs and code to execute.
102104

103-
![R-module](media/module/upload-image-in-r-script.png)
105+
![R-module](media/module/execute-r-script.png)
104106

105107
Datasets stored in the designer are automatically converted to an R data frame when loaded with this module.
106108

@@ -120,25 +122,25 @@ Datasets stored in the designer are automatically converted to an R data frame w
120122

121123
To help you get started, the **R Script** text box is pre-populated with sample code, which you can edit or replace.
122124

123-
```R
124-
# R version: 3.5.1
125-
# The script MUST contain a function named azureml_main
126-
# which is the entry point for this module.
125+
```R
126+
# R version: 3.5.1
127+
# The script MUST contain a function named azureml_main
128+
# which is the entry point for this module.
127129

128-
# The entry point function can contain up to two input arguments:
129-
# Param<dataframe1>: a R DataFrame
130-
# Param<dataframe2>: a R DataFrame
131-
azureml_main <- function(dataframe1, dataframe2){
132-
print("R script run.")
130+
# The entry point function can contain up to two input arguments:
131+
# Param<dataframe1>: a R DataFrame
132+
# Param<dataframe2>: a R DataFrame
133+
azureml_main <- function(dataframe1, dataframe2){
134+
print("R script run.")
133135

134-
# If a zip file is connected to the third input port, it is
135-
# unzipped under "./Script Bundle". This directory is added
136-
# to sys.path.
136+
# If a zip file is connected to the third input port, it is
137+
# unzipped under "./Script Bundle". This directory is added
138+
# to sys.path.
137139

138-
# Return datasets as a Named List
139-
return(list(dataset1=dataframe1, dataset2=dataframe2))
140-
}
141-
```
140+
# Return datasets as a Named List
141+
return(list(dataset1=dataframe1, dataset2=dataframe2))
142+
}
143+
```
142144

143145
* The script must contain a function named `azureml_main`, which is the entry point for this module.
144146

0 commit comments

Comments
 (0)