Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show last output of ipywidget Output widget

I am using ipywidget's 'Output' widget. As text is sent to it, scrollbars appear as the amount exceeds what can be shown. At that point, only the first lines of text are shown. Instead, as new text is added, I want it to auto-scroll such that the last line printed is always shown.

The current behavior: enter image description here How can I make the last line of output displayed as it is printed?

like image 917
Robert Lugg Avatar asked Nov 27 '25 11:11

Robert Lugg


1 Answers

Currently there is no general solution to the scroll_to_bottom problem. See: https://github.com/jupyter-widgets/ipywidgets/issues/1815

In the discussion there seems to be a linux specific solution which I cannot verify.

The issue is on the milestone list of ipywidgets https://github.com/jupyter-widgets/ipywidgets/milestone/2

like image 83
above_c_level Avatar answered Dec 02 '25 06:12

above_c_level



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!