With PyCharm, you can run entire applications as well as particular scripts.
PyCharm uses settings that are defined in a Run/debug configurations. All the run configurations that currently exist in a project, are available in the Select Run/Debug Configuration list.
note
If the options that launch tools before running were enabled in a Run/Debug configuration, PyCharm runs the tools, and after success will run the application. Otherwise, the program will start immediately.
If you want to see the list of all currently running applications, select Run | Show Running List from the main menu. For more information, refer to View running processes.
After you've started a run session, the icon in the Run widget and in the Run/Debug Configuration Selector toggles to to indicate that the run process is active and can be restarted.
tip
You can configure some tools (for example, npm scripts) to be launched before running. In this case, PyCharm runs the tools, and after success will run the application. Otherwise, the application starts immediately.
Running a script
Choose Run | Run from the main menu or press AltShiftF10, and then select the desired run/debug configuration.
This way, you can run any available run/debug configuration. Choose the desired run/debug configuration from the popup menu that shows all the run/debug configurations existing in the project.
You can review the output from your running applications in the Run tool window. The output from each application is displayed in its own tab, named after the corresponding run/debug configuration.
If you re-run an application, the new output overwrites the contents of the tab. To preserve the output of an application, even if you re-run it, pin the output tab: right-click the tab and select Pin Tab.
Using the Run popup menu
Invoke the Run popup menu either by choosing the Run | Run command from the main menu, or by pressing AltShiftF10.
From this popup menu 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 popup menu can also be quickly accessed by pressing F9, when you're not running any debug session.
Rerunning applications
In the Run window, select the tab where the desired application is opened.
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.