Terminal, Script Editor, and Load Python

Learn about the Terminal, Script Editor, and loading Python in VRED.

Video captions: Python is generally used as programming language in VRED. There are multiple possibilities to run Python script in VRED. With the aid of the helpline, commands can be phrased as one liner. As feedback, the last line of a result is displayed. As an example, we write the command, "print hello", which describes an output of hello. A further option is to get an overview of the executed commands with the help of the Terminal. Within root, you can also type commands. You can see that we received, "hello terminal", as output. To write scripts with multiple lines, you need the VRED Script Editor, which can be called up in the main menu bar, under Edit > Script Editor. In the example, we write the commands, "print hello" and "print hello" second code line and execute them with "run". We get the feedback to the commands with the help of the Terminal. Another option to run scripts in VRED is load existing ones, which must exist in the file format .py for Python. Scripts can be loaded with the "add" command. The Terminal, in return, displays the path of the loaded script and the resulting output.