qtconsole
qtconsole copied to clipboard
Auto-scroll to end on remote command does not work
While executing remote command, say from jupyter-vim, auto-scroll to end does not work. The issue was fixed in #349 but concerned code was removed in #360.
@impact27, since you submitted #360, what do you think about @oponkork's issue?
I guess the problem here is what the expected behaviour is. There is mainly two possible behaviour:
- The console scrolls down no matter what on new output. So if you have a code that is constently giving you output you won't be able to stop the scrolling and read the messages before it is done.
- (Implemented by #360) The console scrolls down on new output if you are at the bottom of the console. If you scroll up to read something, the console won't jump back to the bottom on new output so you can read what is going on. If you want the console to autoscroll, you need to scroll back down.
Now the question for @oponkork is: Are you expecting behaviour 1 or is it a different issue for remote commands?
I guess the problem here is what the expected behaviour is. There is mainly two possible behaviour:
The console scrolls down no matter what on new output. So if you have a code that is constantly giving you output you won't be able to stop the scrolling and read the messages before it is done.
I did not think of this edge case and yes, "scroll down on new output only if you are at the bottom" makes sense. But this does not happen for remote commands. I have attached a video, where I remotely execute a snippet 3-4 times in a fresh console. As you can see, console does not scroll down at all. Is this expected?
I guess an alternative approach could be to scroll down such that the last executed cell begins from the top of the console window. The user can scroll down if the output spans more than the console height.
https://user-images.githubusercontent.com/58289453/110893790-ab3a9c00-831c-11eb-912b-2e96c03c2edb.mp4
Probably related to https://github.com/jupyter/qtconsole/issues/386 There is a bug with autoscroll and remote commands.