0

I looked up how to overwrite the print output and found multiple questions concerning this issue. See e.g. here or here. However, none of the mentioned solutions worked for me and I always get a new line. Is it because I use the Spyder IDE? Any ideas what I could do? I am using Python 2.7.12 with Spyder on Ubuntu 16.04. LTS.

Community
  • 1
  • 1
a.smiet
  • 1,727
  • 3
  • 21
  • 36

1 Answers1

0

You need to use the IPython console in Spyder for this to work. The examples you posted work fine for me in that console, but not in the Python one, where they fail miserably.

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
  • Works for me :) . Still it would be interesting to know why it fails in the Python console... – a.smiet Nov 19 '16 at 10:03
  • 1
    We (I'm a Spyder developer) haven't added support to overwrite output in the Python console. Besides, that console is going to be removed in Spyder 4.0 because we don't plan to maintain it anymore. – Carlos Cordoba Nov 19 '16 at 15:44