Skip to content

Instantly share code, notes, and snippets.

@mjdargen
Created July 21, 2020 01:59
Show Gist options
  • Select an option

  • Save mjdargen/b33d84402f39ce2ed328ef0ea072eba8 to your computer and use it in GitHub Desktop.

Select an option

Save mjdargen/b33d84402f39ce2ed328ef0ea072eba8 to your computer and use it in GitHub Desktop.
# Run this cell only once if you are having issues with your input/output...
# window overflowing and scrolling to the left and right horizontally.
# This code is a very hacky way of trying to adjust this.
# It resizes colab output window so it doesn't overflow
from IPython.display import HTML, display
def set_css():
display(HTML('''
<style>
pre {
white-space: pre-wrap;
}
</style>
'''))
get_ipython().events.register('pre_run_cell', set_css)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment