Achieving word wrap in Python session

Is there a way to achieve word wrap in Python sessions? If I have a very long line (e.g., containing directory location), the line goes outside the page as shown below:

Is there a way to get ‘word wrap’ in Python sessions so that rather than the line getting outside of the page, it automatically moves the text to a new line when it reaches the end of line/end of margin?

I do not know how to do that, but here is something helpful I hope: from the context menu -> Input options -> Multiline input and you will be able to start a new line with the Return key.

Moreover TeXmacs does break some lines but I don’t know what is the criterion.
I tested it with a sum and it got split; In the wrench menu there is the option “Do not break up large formulas”, but, selecting it, sums keep getting split.

Maybe someone else knows more.

1 Like