Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 593840886
  • Loading branch information
blois authored and colaboratory-team committed Dec 26, 2023
1 parent 3c6d9cb commit e3ec432
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion google/colab/output/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
"""Colabs output package."""
# pylint: disable=g-multiple-import
from google.colab.output._area import redirect_to_element, to_default_area, to_footer_area, to_header_area
from google.colab.output._area import no_vertical_scroll, redirect_to_element, to_default_area, to_footer_area, to_header_area
from google.colab.output._js import eval_js, register_callback, unregister_callback
from google.colab.output._tags import clear, temporary, use_tags
from google.colab.output._util import serve_kernel_port_as_iframe, serve_kernel_port_as_window
Expand Down
10 changes: 10 additions & 0 deletions google/colab/output/_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ def to_default_area():
"""Restores output to output into default area."""
with redirect_to_element(_jsapi.output.getDefaultOutputArea()) as s:
yield s


def no_vertical_scroll():
"""Never show a vertical scrollbar for the output.
The output cell will be as large as necessary to show all the output.
"""
_jsapi.output.setIframeHeight(
-1, True, {'interactive': True, 'maxHeight': 99999}
)

0 comments on commit e3ec432

Please sign in to comment.