PyCharm 2023.3 Help

Run without any previous configuring

Any executable script can be run in PyCharm. You don't need to create any run/debug configuration in advance. A temporary run/debug configuration is already created for you.

To run the current file without creating a configuration, do one of the following:

Code cells

You can execute fragments of your code by creating and running code cells.

  1. Split the code into cells by adding comment lines that start with #%%.

    Adding cells to the Python code
  2. In the gutter, click Run Run next to the code fragment that you want to run.

    Adding cells to the Python code
  3. The code cell is executed in the Python Console.

    Adding cells to the Python code
Last modified: 07 March 2024