Quantcast
Channel: How to make Ipython output a list without line breaks after elements? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Josh Bode for How to make Ipython output a list without line breaks after elements?

$
0
0

An alternative to turning off pretty printing entirely is to increase the max_width trait for the PlainTextFormatter.

Add the following to ipython_config.py (find it by ipython locate profile):

c.PlainTextFormatter.max_width = 120

which will allow the pretty printer to use less vertical space by allowing lines to extend out to 120 characters rather than the default of 79.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>