If you want to explore the internal structure of source code as it is interpreted by PyCharm, use the PSI viewer.

Note that PSI viewer command is only available when there is at least one plugin module in project.

  1. On the main menu, choose Tools | View PSI Structure.
  2. In the PSI Viewer dialog box, type or paste the fragment of source code to be analyzed in the Text area, select file type, and specify the other options.
  3. Click Build PSI Tree, and preview the generated PSI tree in the PSI Structure pane.
    If the source code in the Text area has been changed, click the same button to refresh preview.

See Also

Reference:

Web Resources: