Why is spyder console responding inappropriately?

1k Views Asked by At

I have installed spyder v3.0.2 as part of Anaconda (in Windows 7), and have started working through the tutorial.

However, the python console does not seem to be responding correctly to input, either directly in the console or from a script via runfile.

There seem to be two things going on:

(1) The prompt appears too quickly so that it cuts into output

Spyder output 1

(2) Each time my script (which defines a hello function including one call to print, and calls it) is run, I do not see the expected output until I press Enter. From then on the console seems to need me to press Enter another time to produce the normal response you would expect from Enter. This leads to unexpected behaviour, particularly around the regular (>>>) and continuation (...) prompts. It increments each time the script is re-run, so that after running three times you need to press Enter an additional three times. For example:

Spyder output 2

Am I missing something obvious? My guess would be that it has something to do with line ending encodings but I can't figure out how to stop it. Also to my mind that still wouldn't explain issue (1).

Note that the IPython console seems to work without these issues (which of course I can use but I don't like the fact that there is clearly something amiss more generally...). Also, I tried installing the Mac version on my MacBook and don't have the same problem.

0

There are 0 best solutions below