PyCharm 2026.2 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:

  • Right-click an open file in the editor and choose Run <filename> from the context menu.

    Run context menu
  • Click Run Run in the gutter and choose Run <script name>.

    Run from the gutter
  • Press Shift+F10.

  • In the Run widget, select Current File and click Run Run.

    Run current file

    You can click Debug Debug to start the debugger or click More Actions More Actions to select other running modes:

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
08 July 2026