I am looking for a solution that is the most convenient for casual, exploratory notebook use.
I have several functions that output strings with multiple lines. When this appears in the output cell of a Jupyter notebook, it is formatted without multiple lines, just the ‘n’ characters. I can force the string to format in the output by wrapping the function in a “print” but I would like to avoid that inconvenience.
Suggestions? I am open to a setting I must apply to the whole notebook or in an initial cell.
Versions
python 3.11.8
ipython 8.15.0
jupyter lab 4.0.8