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)