- Select the desired script in the Project tool window or open it in the editor.
- On the context menu of the selection, choose Ctrl+Shift+F10Ctrl+Shift+F10.
PyCharm creates a temporary configuration, which appears in the Select Run/Debug Configuration drop-down list on the main toolbar when the run or debug session is over.
or . Alternatively, press