DataArts Factory allows you to develop, debug, and run Python scripts online. You can run developed scripts in jobs. For details, see Developing a Pipeline Job.
For details about how to develop a Python scripts, see Developing a Python Script.
Parameter |
Description |
|---|---|
Python Version |
Select a Python version.
|
Host Connection |
Select the host where a Python script is to be executed. |
Click Input Parameters and enter the parameter and interactive parameter for executing the Python script.
Parameter |
Description |
|---|---|
Parameter |
Parameter transferred to the Python script when the script is executed. Parameters are separated by spaces, for example, a b c. The parameter must be referenced by the Python script. Otherwise, the parameter is invalid. |
Interactive Parameter |
Interactive information (for example, passwords) provided during Python script execution. Interactive parameters are separated by spaces. The Python statement reads parameter values in sequence according to the interaction situation. |
a=1 print (a) or a= 'qqq' print (a)
a= 'zhang'
print (${a})
In the preceding command, a indicates the parameter name. It can contain only letters, digits, hyphens (-), underscores (_), greater-than signs (>), and less-than signs (<), and can contain a maximum of 16 characters. The parameter name must be unique.
and click Release.
Parameter |
Mandatory |
Description |
|---|---|---|
Script Name |
Yes |
Name of the script. The name contains a maximum of 128 characters, including only letters, numbers, hyphens (-), underscores (_), and periods (.). |
Description |
No |
Description of the script |
Select Directory |
Yes |
Directory to which the script belongs. The root directory is selected by default. |
If you open an unsaved script, you can restore its content from the local cache.
After the script is saved, a version is automatically generated and displayed in Versions. The version can be rolled back. If you save a script multiple times within a minute, only one version is recorded. If the intermediate data is important, you can click Save new version to save and add a version.