Anton
Anton

Reputation: 4815

Run A Section Of Code In PyCharm?

I am moving from R to Python and have been loving PyCharm for it's similarities to my beloved RStudio. However, someone I can't seem to figure out how to do is run a selection of code in a script.

Is there any way to do this?

Upvotes: 8

Views: 8819

Answers (3)

cdarlint
cdarlint

Reputation: 1635

now PyCharm has scientific project, when you creating a new project

Upvotes: 0

Kewl
Kewl

Reputation: 3417

You can select the code you want to run, right-click, and select 'Execute Selection in Console'. The keyboard shortcut for this is ALT+SHIFT+E on Windows

Upvotes: 3

Ramashish Baranwal
Ramashish Baranwal

Reputation: 7246

Yes.

  1. Open Django console
  2. Select your code and press Ctrl+Alt+E. It will execute the code in Django console.

Upvotes: 0

Related Questions