Skip to content

Instantly share code, notes, and snippets.

@janbenetka
Created October 29, 2021 22:11
Show Gist options
  • Save janbenetka/63a80bde99cc0f50d9d96bb55f149b3f to your computer and use it in GitHub Desktop.
Save janbenetka/63a80bde99cc0f50d9d96bb55f149b3f to your computer and use it in GitHub Desktop.
[Restrict height of cell in Colab (in px)] #colab
from IPython.display import Javascript # Restrict height of output cell.
display(Javascript('''google.colab.output.setIframeHeight(0, true, {maxHeight: 300})'''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment