Pycharm: run only part of my Python file

后端 未结 5 941
逝去的感伤
逝去的感伤 2020-12-02 06:07

Is it possible to run only a part of a program in PyCharm?

In other editors there is something like a cell which I can run, but I can\'t find such an option in PyCha

5条回答
  •  天命终不由人
    2020-12-02 06:49

    1. Go to File >> Settings >> Plugins and install the plugin PyCharm cell mode
    2. Go to File >> Settings >> Appearance & Behavior >> Keymap and assign your keyboard shortcuts for Run Cell and Run Cell and go to next

    A cell is delimited by ##

    Ref https://plugins.jetbrains.com/plugin/7858-pycharm-cell-mode

提交回复
热议问题