Search code examples
pythonpython-3.xspyder

Empty line before input prompt on Spyder


When I run the code

print("Hi")
input("Hello: ")

on Python Tutor (Python 3.6), I get the expected output (ignoring my input)

Hi
Hello:

However, when I run the same two lines on my computer, using Spyder 3.3.1 and Python 3.7 I get the output

Hi

Hello: 

I would like to understand why this blank line appears in Spyder, and also how to get rid of it.


Solution

  • This is a Spyder's bug and it was fixed in its 5.3.1 version, released on May 2022.

    Note: Please be sure to also have version 5.3.1 of the Qtconsole package to avoid a bug that appeared while fixing this one.