79729149

Date: 2025-08-07 21:30:00
Score: 1
Natty:
Report link

I put the following in the first cell of every notebook needing wrapping:

from IPython.display import HTML, display
def set_css(): display(HTML('\n<style>\n pre{\n white-space: pre-wrap;\n}\n</style>\n'))
get_ipython().events.register('pre_run_cell',set_css)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ken Ocheltree