-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Auto-scrolling of long output should be configurable in the UI #2172
Comments
Continuing the discussion from #2154. |
Hey all, sorry to bother, but what is the status on this? It would be great if this functionality (ability to turn on or off auto-scrolling of cell output) could also be attached to a toggle parameter unique for each cell. Sometimes there are things that I want to be printed out in their entirety (such as a list of plots generated in a loop), while other times, auto-scrolling for a long printed output is preferable. Is this much work to implement? |
Hi, I see that this is marked as configure it globally shouldn't be hard :
Plus write the UI. On a per/cell basis slightly more difficult as this lives in So difficulty, I would say medium, because it is long to do, and involve a lot of cases where you desactivate while it is collapsed... and so on on so forth. I think we should be able to have enough hooks to allow the configurability on a per cell basis through extensions. |
Thanks @Carreau for the reply! I will use the tip suggested and if I get time, I will dig in more and see how I can contribute! |
I think the right answer is to add 'scroll' state to the output area, with three states: true / false / auto. Should be easy enough. |
I am a hesitant to add more complexity to how output is handled without
On Sun, Mar 10, 2013 at 10:47 AM, Matthias Bussonnier <
Brian E. Granger |
@ellisonbg I'm not talking about making it configurable, I'm just talking about recording state - right now there is no information about whether the user has told a cell to stay uncollapsed, so if more output comes it is automatically collapsed again, which is super annoying. Recording the autoscroll state, just like we already do with the collapsed state, solves that issue. No configuration is added. |
Ahh, sorry I was reading the title of this issue. I fully agree the state On Sun, Mar 10, 2013 at 4:43 PM, Min RK notifications@github.com wrote:
Brian E. Granger |
@minrk, if this could be implemented, that would be awesome. I am just starting to dig into IPython development (a wonderful tool btw, thank you for all the work), so I will have to dedicate some time looking into this, when I am able. Not much time now, but will try hopefully soon. :) |
@minrk did this ever get implemented? I'm still seeing auto-scrolling getting reset after re-evaluating cells in IPython 2.2. |
Nope, not yet. The metadata for the state is added in nbformat 4, but the code hasn't been written. |
To fix the annoyances temporarily, create a code block with:
and execute. |
this died :( |
+1 |
I'd like to add another use case here, I would often like to use graphs that are slightly larger than the default scroll region size, which makes them very awkward to use (bokeh user here). So please allow setting the threshold some way. |
Just because I found this earlier than the right solution (and the above didn't work anymore to disable the scolling): https://github.com/minrk/ipython_extensions/blob/master/extensions/disable_autoscroll.py -> just execute the JS in a |
wish it was a thing |
I just found this issue since I was googling to figure out how to turn off auto scrolling. It would be useful and appreciated if someone had time to fix this. I mean the ability to turn auto-scrolling on and off. Thanks. |
I had trouble getting the above javascript to work on my computer, but I was able to get the ipython notebook extensions here to work: https://github.com/ipython-contrib/IPython-notebook-extensions |
The original request was for:
Plumbing code is in place to enable such a UI (for #1 enable/disable and #2 changing the threshold). Are you still open to contributions for such a UI? The commit that closed this issue was about persisting the per-cell scroll state metadata, which is different from the original request (the commit is/was needed to implement a solution to this issue, which is great). |
We've had on-list, in person and here (#2154) various requests for different thresholds or behaviors regarding auto-scrolling. Ultimately there's no one good default that fits all cases, so this should have a UI control for users to enable/disable the feature as well as changing the threshold.
The text was updated successfully, but these errors were encountered: