straeter
straeter

Reputation: 111

Change default Python / Flask Console in PyCharm

I could not find an answer for this:

I have a Flask project that has (by default) two consoles preset: One (ordinary) "Python Console" and one "Flask console":

Pycharm Console Settings

Now if I start a new console with the "+" symbol in the Console menu, it opens a "Flask Console" by default:

Open new Console behaviour

However I want the "Python Console" by default. In another PyCharm Flask project that I started a year ago, the "Python Console" starts by default, even though it appears to me that I have the same settings in both projects.

Upvotes: 3

Views: 895

Answers (2)

kyle andelin
kyle andelin

Reputation: 21

Go into .idea/workspace.xml and remove the Flask component. It's the only way I was able to remove it.

Upvotes: 0

straeter
straeter

Reputation: 111

I got an answer in the official intellij-support forum (see here). In Settings -> Languages & Frameworks -> Flask: If you check the "Flask integration" option, the Console default will switch automatically to Flask Console:

enter image description here

It is not possible to manually switch the Console default independent of this option but it was suggested to do a feature request for that

Upvotes: 4

Related Questions