PyCharm 2019.2 Help

Loading Code from Editor into Console

To run source code from the editor in console

  1. Open file in the editor, and select a fragment of code to be executed.

  2. From the context menu of the selection, choose Execute selection in console, or press Shift+Alt+E:

    Execute selection: context menu

  3. Watch the command execution in the console:

    Execution of the selected code fragment in the console

Last modified: 6 November 2019