This behavior occurs because each command in the Python console starts a GTlab command to enable undo/redo of Python commands (see GtpyConsole::executeCode()). We should check whether the current ...