How to run selected code in a new Python Console?

I know I can reset the python console using Ctrl + F5, but it also runs the python file specific in the script path in the Run configuration. I also know that I can run specific line/selection using the Alt + Shift + E.

I want to mix this two commands. I want to run the selected code in a new python console.

Is there any way to achieve this?

Thanks!

2 comments
Comment actions Permalink

Hi, 

 

Regrettably, this option is not available, please submit a feature request at https://youtrack.jetbrains.com/issues/PY

Information on how to use YouTrack: https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

0
Comment actions Permalink

I am not sure if it would be important to a lot of people, but I've found a work around.

Set an empty python file/module in the Script path. Now every time I press Ctrl+F5, I get a fresh python terminal with no states.

0

Please sign in to leave a comment.