Python Console

Python Console

Python Console

The Python Console allows you to interactively write and execute python code using the Jython interpreter built in to Blue. Because Blue does not clear the environment of the interpreter between runs, the console can be useful to interactively inspect objects. Some ways you might use the console:

The console works much like running python interactively in a console or terminal. At the ">" prompt, you can type in some code, then press enter to execute the code. All output from python functions (including things like print statements in PythonObjects in the Score or Python NoteProcessors) will output to the Python Console.

Some useful shortcuts available while in the console:

Table 1.2. Shortcuts for the Python Console

Shortcuts Description
ctrl-up/ctrl-down cycle through previous commands used
ctrl-l clear the console (also available from the rt-click popup menu