How to activate interactive python console by default and without first executing program
Hello,
Is it possible to set PyCharm to activate the interactive python console by default when PyCharm starts up? Even if I have the console open when I close PyCharm, the next time I start PyCharm the console does not start up by default. And when I do start it up again, it defaults to showing the toolbar even though I always disable that.
Also, is it possible to activate the interactive Python console (after it's been closed) without needing to run my entire program? When the console is closed, if I attempt to open it (using Tools > Python Console) nothing happens. Likewise if I select a line of my Python script and attempt to "Execute Selection in Console" when the console is not open, nothing happens. The only way I can get the console to open is by using the "Run File in Console" command. But I would prefer to have the option of opening the console without having to run a file.
Thanks
请先登录再写评论。
I open the console via the bottom left corner. This should be the same as Tools> Python Console.
If this isn't working I wonder if it is because you don't have an interpreter setup in your project?
Settings > Project > Project Interpreter
Thanks for the response. Unfortunately this does not work for me from a cold start, and I do have a project interpreter set up.
I know this is 6 years too late, but someone else may have this. My Python Console button was missing from the bottom toolbar. Look around the outside perimeter of the screen. If you see it, click and drag it to the toolbar you would like to have it in. If you don't see it, open it from the Tools menu (Tools>Python or Debug Console). The window pane will open and the button for it will in the respective toolbar. Drag the button to the toolbar you want it to be in.
The original advice is good. This just expands upon it.