Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spyder IDE Console History

Tags:

python

spyder

How to see print history in console in spyder IDE ? If more data gets printed it does not shows on console and not even shows the scroll bar.

like image 710
user3755882 Avatar asked Nov 05 '14 06:11

user3755882


People also ask

How do I find history on my Spyder?

The History Log is stored in the . spyder-py3 (Python 3) or spyder (Python 2) directory in your user home folder (by default, C:/Users/username on Windows, /Users/username for macOS, and typically /home/username on GNU/Linux).

How do you get the console output in Spyder?

First, use print(x), or plt. show() if using matplotlib. pyplot. Then, if you find that spyder python does not give any output at (F5), change Preferences (spanner icon), select menu 'Run' and change to a different Console option, e.g. 'Execute in a dedicated console', then Run (F5).

How do I delete history on my Spyder?

While there is currently no built-in way to clear history from the Spyder interface aside from resetting preferences, you can do so by closing Spyder, deleting this file and restarting Spyder again.


2 Answers

The default configuration is to buffer 10,000 lines. If you require a larger buffer, you will have to change settings in Preferences->Console->Display->Source Code->Buffer: to increase the number of lines.

like image 195
kums Avatar answered Oct 20 '22 00:10

kums


This is an update for Spyder version 3.1.4:

  1. Tools
  2. Preferences (The shortcut is: Ctrl+Alt+Shift+P)
  3. IPython console (in the left menu of the Preferences utility)
  4. Source code
    1. Buffer: 500 Lines (in the right menu under the "Display" tab)

Increase the buffer to view more lines in the IPython console. Then close and restart Spyder.

like image 37
Blake M Avatar answered Oct 19 '22 23:10

Blake M