PyCharm, stop the console from clearing every time

2019-08-03 20:43发布

问题:

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.