qtconsole output disappearing #2416

Open
tp199911 opened this Issue Sep 18, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@tp199911

I have a weird problem when outputting in qtconsole (Win7 64bit, python3) with intermittent pauses/calculations. When I run this:

for i in range(100):
    print(i, end=' ')
    time.sleep(0.2)

and then press a key (or change focus) while it's running, the output so far disappears, and it continues one line higher, after the last '...:'-prompt. so I get this in my console:

In [15]: for i in range(100):
    ...:     print(i, end=' ')
    ...:     time.sleep(0.1)
    ...:      84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 

If I pressed a key at 8.3 seconds in.
If I add a

if i%20 == 0: print()

before the sleep(), every time I press a key, all lines disappear except that 'before-first' one, and it appends output there. So with several keypresses, I can get something like this:

In [16]: for i in range(100):
    ...:     print(i, end=' ')
    ...:     if i%20 == 0: print()
    ...:     time.sleep(0.1)
    ...:      59 60  65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80  86 87 88 89 90 91 92 93 94 95 96 97 98 99 

Any idea on what might be causing this?

@bfroehle

This comment has been minimized.

Show comment Hide comment
@bfroehle

bfroehle Sep 18, 2012

Contributor

I wasn't able to reproduce this in my Ubuntu 12.04 installation. :/

In [1]: import time

In [2]: for i in range(100):
   ...:     print(i, end=' ')
   ...:     time.sleep(0.2)
   ...:     
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
Contributor

bfroehle commented Sep 18, 2012

I wasn't able to reproduce this in my Ubuntu 12.04 installation. :/

In [1]: import time

In [2]: for i in range(100):
   ...:     print(i, end=' ')
   ...:     time.sleep(0.2)
   ...:     
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
@flebool

This comment has been minimized.

Show comment Hide comment
@flebool

flebool Oct 31, 2012

I was able to reproduce this in Win7, 64bit, python2.7.3 from Enthougth distribution, ipython 0.13.

flebool commented Oct 31, 2012

I was able to reproduce this in Win7, 64bit, python2.7.3 from Enthougth distribution, ipython 0.13.

@curioustolearn

This comment has been minimized.

Show comment Hide comment
@curioustolearn

curioustolearn Feb 25, 2013

I am having a similar problem. When I output a subset of a pandas dataframe in iPython it sometimes disappears and all previous output also disappears. That is, I cannot scroll back to anything that was present before I entered the command.

I am using Snow Leopard, python 2.7.3 from Anaconda CE, and iPython 0.13.1

I am having a similar problem. When I output a subset of a pandas dataframe in iPython it sometimes disappears and all previous output also disappears. That is, I cannot scroll back to anything that was present before I entered the command.

I am using Snow Leopard, python 2.7.3 from Anaconda CE, and iPython 0.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment