PyCharm 2017.1 Help

Running Applications

On this page:

Introduction

PyCharm enables running entire applications as well as particular scripts.

PyCharm makes use of the settings defined in a Run/Debug Configuration. All the run configurations that exist in a project, are available in the Select Run/Debug Configuration drop-down list.

/help/img/idea/2017.1/py_runConfigMenu.png

If you want to see a list of all currently running applications, select Run | Show Running List from the main menu. Refer to the section Viewing Running Processes for details.

Note that after you've started a run session, the /help/img/idea/2017.1/run.png icon that marks the Run tool window and in the Run/Debug Configuration Selector toggles to /help/img/idea/2017.1/active_run_icon.png to indicate that the run process is active.

Running a script

To run a script, do one of the following:

  • Choose Run | Run on the main menu or press Shift+Alt+F10, and then select the desired run configuration.
  • For the main clause: In the left gutter, click the icon /help/img/idea/2017.1/run.png, and choose the desired command.
    /help/img/idea/2017.1/py_run_left_gutter_menu.png
  • Choose Run <name> on the context menu:
    /help/img/idea/2017.1/py_run_context_menu.png
  • Press Ctrl+Shift+F10.
  • Select the desired module in the Project tool window and choose Run <name > on the context menu of the selection:
    /help/img/idea/2017.1/py_run_from_project_tool_window.png

Using the Run pop-up menu

Invoke the Run pop-up menu either by choosing the Run | Run command on the main menu, or by pressing Shift+Alt+F10.

/help/img/idea/2017.1/py_altShiftF10.png

From this pop-up menu that you can:

  • Invoke the Edit Configuration dialog.
  • Edit the selected configuration before launch (F4).
  • Instantly delete a configuration (Delete).
  • Switch from run to debug and vice versa (hold Shift).
  • Access a previously selected configuration (1).

This pop-up menu can also be quickly accessed by pressing F9, when you're not running any debug session.

See Also

Last modified: 26 July 2017