Working with run configurations
Run configurations in PyCharm allow you to set up different ways to run your programs from the IDE. The heart of the run configurations is a cluster of blue buttons toward the top of the main window. Follow the arrow in Figure 3.33:
Figure 3.33: There are several run buttons at the top of the screen along with a drop-down list that allows you to work with various run configurations
Since we have the manually-created
project already open from earlier, why don’t we continue exploring using that project? That cluster of buttons I pointed to in Figure 3.33 consists of a Run button, a Debug button, and a dropdown that lets you set and manage your run configurations. When we imported the project, it generated a run configuration called Current File.
With this set in the drop-down menu, the file in the Focused tab will be executed when you click either the run or debug button:
- This is the regular Run button. It...