Skip to content

17.run_python_program

Run the python program interface in ide:
Run the python program in ide.

Message:

json
{
    "cmd": "run_python_program",
    "data": {
        "version":"lite6",
        "user_Id":"test",
        "projectName":"BlocklyToPython",
        "filePath":"/test_0907.py"
    },
    "id": "1"
}

Request:

datatypeRequired fieldsDescription
versionstringyesLite6 arm passes “lite6”, other types pass null
user_IdstringyesDefault pass test
projectNamestringyesThe parent directory of the project
filePathstringyesPath of IDE file relative to parent directory

Respons:

code=0->Success;
code!=0->1111 indicates an execution IDE exception.