PyCharm, stop the console from clearing every time you run the program

偶尔善良 提交于 2019-12-11 09:01:47

问题


So I have just switched over from Spyder to PyCharm. In Spyder, each time you run the program, the console just gets added to, not cleared. This was very useful because I could look through the console to see how my changes to the code were changing the outputs of the program (obviously the console had a maximum length so stuff would get cleared eventually)

However in PyCharm each time I run the program the console is cleared. Surely there must be a way to change this, but I can't find the setting. Thanks.


回答1:


In Spyder the output is there because you are running iPython.

In PyCharm you can get the same by pressing on View -> Scientific Mode. Then every time you run you see a the new output and the history there.



来源:https://stackoverflow.com/questions/51466944/pycharm-stop-the-console-from-clearing-every-time-you-run-the-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!