File | Settings | Console | Python Console
Use this page to define the Python interpreter, its options, starting script etc. for the Python console.
|Project||Click this drop-down list to select one of the projects, opened in the same PyCharm window, where this run/debug configuration should be used. If there is only one open project, this field is not displayed.|
|Environment variable||This field shows the list of environment variables.
If the list contains several variables, they are delimited with semicolons.
To fill in the list, click the browse button, or press Shift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift EnterShift EnterShift Enter and specify the desired set of environment variables in the Environment Variables dialog box.
To create a new variable, click , and type the desired name and value.
|Python Interpreter||Select one of the pre-configured Python interpreters from the drop-down list.|
|Interpreter options||In this field, specify the string to be passed to the interpreter. If necessary, click , and type the string in the editor.|
|Working directory||Specify a directory to be used by the running console. When this field is left blank, the project directory will be used.|
|Configure interpreters||If the desired interpreter is missing in the drop-down list, click this link to open the Python Interpreters page, and configure an interpreter or virtual environment, as described in the section Configuring Python SDK.|
|Starting script||In 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, inspections and quick fixes are available
in this editor: