The QGIS Python Console is an interactive shell for the python command executions.
It also has a python file editor that allows you to edit and save your python scripts.
Both console and editor are based on PyQScintilla2 package.
The console is split in two main panes, top and bottom one
resizable by using the horizontal splitter. Output area pane is a widget read-only which
shows the commands output. You can drag and drop or copy and paste text into input area and
execute code snippets from the output pane by selecting some text and clicking on the
command from the context menu.
No matter if selected text contains the interpreter prompt (>>>, ...). Input area pane is the interactive
python shell for input commands. To access to the python file editor use the
button
from the toolbar. The editor allows editing and saving python files and it offers basic functionality
for managing your code (comment and
uncomment code, check syntax, share the code via codepad.org and much more).
If checked the code completion is enabled. You can get autocompletion
from current document, from installed APIs and both from APIs and current document
Sets the threshold to display the autocompletion list (in chars typed)
If checked enables the autoclosing for bracket
Allows you to save automatically the
script to be executed in order to avoid to save it after any modification.
This action will store a temporary file into the temporary system directory
that will be automatically deleted after running.
You can choose whether use the preload APIs file or load some APIs files saved on your system.
If checked the *.pap file will be used for code completion. To generate a prepared APIs file you have to load least an *.api file and then compile it by clicking on button.
Note: To save the state of console's widgets you have to close the Python Console
from the close button. This allows you to save the geometry to be restored to the next start.