-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 print function does not work properly in Python consoles #3437
Comments
Hi @Skottfelt why |
Because I am using it as status output, that should overwrite itself, so I do not get a long list of unnecessary text. |
Hmm got it, we will look into it |
Thanks |
This works correctly in our IPython consoles. Please those instead because we don't have plans to fix this for our Python consoles anytime soon :-) |
Closing as Won't fix. |
Hi everyone,
When I choose "Execute in an external system terminal" in "Run configuration per file", I get the desired output where each number is overwritten by the next one. Any help is appreciated. |
Description of your problem
I am running python 2.7, but uses the print function from python3 in order to use the overwrite functionality. However this does not work porperly in the spyder console.
What steps will reproduce the problem?
An example:
What is the expected output? What do you see instead?
This should not change the line, but the numbers should simply be overwritten. However in the spyder console, a linebreak seems to be inserted, such that the output is:
0
1
2
3
4
5
etc.
In the IPython console in Spyder the output is
0123456789
Please provide any additional information below
I am using the latest spyder3 update, but spyder2 had the same problem
Versions and main components
Dependencies
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.1 (OK)
nbconvert >=4.0 : 4.1.0 (OK)
numpy >=1.7 : 1.10.4 (OK)
pandas >=0.13.1 : 0.18.0 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 4.1.0 (OK)
pyflakes >=0.5.0 : 1.1.0 (OK)
pygments >=2.0 : 2.1.1 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.0 (OK)
rope >=0.9.4 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.3.5 (OK)
sympy >=0.7.3 : 1.0 (OK)
The text was updated successfully, but these errors were encountered: