Skip to content
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

Scrolling up in IPython Console isn't easy during code execution #3504

Closed
mp-v2 opened this issue Oct 5, 2016 · 11 comments
Closed

Scrolling up in IPython Console isn't easy during code execution #3504

mp-v2 opened this issue Oct 5, 2016 · 11 comments

Comments

@mp-v2
Copy link

mp-v2 commented Oct 5, 2016

When a code which contains lots of print statements is running it is not possible to scroll up through the output in the console as it always jumps back to the bottom when a new line is printed

I would expect it to act like the normal Linux console where, if you scroll up during code execution, you can scroll up normally and new printed lines simply add to the bottom but are hidden until you scroll back down. When you fully scrolled down then the screen moves down to accommodate the new lines that are printed.

This is an issue because, with very large scripts, I want to check things as they are running.

You can sort of get the desired behaviour by holding the scroll bar on the right with the mouse and oscillating it up and down slightly so it jumps back up to where you are reading each time a new line is printed

  • Spyder Version: Spyder 3.0.0.dev0
  • Python Version: 2.7.12 64bit, Qt 5.6.0, PyQt5 5.6 on linux
  • Operating system: Ubuntu 15.10

Maybe it's the same outcome as this issue, that it's due to Qt and you guys can't do anything but I thought I'd submit it anyway, just in case you can

@ccordoba12 ccordoba12 modified the milestone: v3.1 Oct 5, 2016
@malliwi88
Copy link
Contributor

Hi @mat2py

I check your issue with code presented on #3281 (Actually closed).

The code works fine 👍
seleccion_009

Please check your conda environment.

Additional details

Dependences

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 4.3.1 (OK)
pyflakes >=0.6.0 : 1.3.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : 1.0 (OK)

@mp-v2
Copy link
Author

mp-v2 commented Oct 27, 2016

Hey @malliwi88 , that issue you reference is a different and unrelated issue.

That issue: When running a script and you're at the end of the window, the window should keep scrolling down to see all the text as it is printed but that doesn't always happen

This issue: When running a script and you're NOT at the end of the window, it keeps jumping to the bottom when new stuff is printed, even though you're trying to read something that is higher up in the window

@malliwi88
Copy link
Contributor

@mat2py the link on

Maybe it's the same outcome as this issue....

redirect to #3281, in short, it is no longer important.

Could you give us some code that presents the problem? so we can help you.

@mp-v2
Copy link
Author

mp-v2 commented Oct 28, 2016

It isn't the same as that issue! Please read my comment above which explains the difference (they're opposite issues).

Literally any code will cause what I explained to happen as it is the way it has been designed. For example:

import time
for i in range(0,1000):
    time.sleep(0.5)
    print(i)

Try to scroll up in the middle of that code running (for example if you wanted to see an earlier output)

@ccordoba12 ccordoba12 modified the milestones: v3.2, v3.1 Nov 16, 2016
@malliwi88
Copy link
Contributor

Hi @ccordoba12

Unfortunately, this seems not to be within my domain for the case of the Ipython console that I believe built Carlos

However, I believe that what is said here could solve the problem

Precisely the problem has been touched as Issue by Ipython (ipython/ipython#2172)

Finally, I would like to mention that this problem is not only present in our console of Ipython, but with all.

I do not know what you think about it @ccordoba12

@ccordoba12
Copy link
Member

This is something that needs to be solved in qtconsole.

@mp-v2
Copy link
Author

mp-v2 commented Jun 8, 2017

Any progress on this issue? The roadmap suggests that the V3.2.1 milestone will be released in June 2017 (this month) but I'm not sure how accurate that milestone and roadmap are.

@ccordoba12
Copy link
Member

No progress, sorry.

@ccordoba12 ccordoba12 modified the milestones: v3.2.1, v3.2.2 Jul 26, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.2.2, v3.2.3 Jul 28, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.x, Not sorted Oct 11, 2018
@randomgambit
Copy link

guys this is indeed a bit annoyting, because then I cannot check my code while it is running... thanks!

@jnsebgosselin
Copy link
Member

@ccordoba12 I'll take care of this one.I have almost a working solution already.

@ccordoba12
Copy link
Member

Thanks @jnsebgosselin! Those are great news!!

I have thought for years how to solve this but haven't came up wit good ideas to do it.

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

No branches or pull requests

5 participants