In PTVS the default behavior is for the program to print to the Python console window and the Visual Studio Debug Output window.
Realizing that it won't be able to accept user input, how do I suppress the Python console window?
In PTVS the default behavior is for the program to print to the Python console window and the Visual Studio Debug Output window.
Realizing that it won't be able to accept user input, how do I suppress the Python console window?
Use the Python Interactive Window (CTRL-ALT-F8 or Debug Menu). You will have the code output on the python interactive shell (where you can obviously interact). The win terminal will not appear anymore.
This was more difficult to figure out than expected, but as usual, simple once you know.
The quick answer.
In the Solution Explorer, right click on the project and select Properties. On the General tab check the box next to Windows Application.
Then save and close the properties window. Done!
Other details from the discussion of an issue posted in 2012 on the PTVS codeplex site.
Python shell appears in addition to output window of IDE