CLion 1.5 Help

Python Console

File | Settings | Build, Execution, Deployment | Console | Python Console



Use this page to define the Python interpreter, its options, starting script etc. for the Python console.

Python InterpreterSelect one of the pre-configured Python interpreters from the drop-down list.
Interpreter optionsIn this field, specify the string to be passed to the interpreter. If necessary, click shift-enter-button.png, and type the string in the editor.
Working directorySpecify a directory to be used by the running console. When this field is left blank, the project directory will be used.
Configure interpretersIf the desired interpreter is missing in the drop-down list, click this link to open the Project Interpreters page, and configure an interpreter or virtual environment .
Add content roots to PYTHONPATHSelect this check box to have the added to the PYTHONPATH.
Add source roots to PYTHONPATHSelect this check box to have the added to the PYTHONPATH.
Starting scriptIn this editor area, type the script to be executed in the console after its start-up and initialization. Note that syntax highlighting, code completion, import assistance, documentation, inspections and quick fixes are available in this editor:

By default, this area contains the following script, which causes printing out a header information and extending the system paths:

import sys; print('Python %s on %s' % (sys.version, sys.platform)) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])

If you want to omit such a printout, delete this script.

See Also

Last modified: 2 February 2016