Quantcast
Channel: How to make Ipython output a list without line breaks after elements? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Josh Bode for How to make Ipython output a list without line breaks...

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...

View Article


Answer by falsetru for How to make Ipython output a list without line breaks...

You can use %pprint command to turn on/off pprint feature:In [1]: range(24)Out[1]:[0, 1, 2, ... 21, 22, 23]In [2]: %pprintPretty printing has been turned OFFIn [3]: range(24)Out[3]: [0, 1, 2, 3, 4, 5,...

View Article


Answer by Ashwini Chaudhary for How to make Ipython output a list without...

Start ipython with --no-pprint option.$ ipython --no-pprint...IPython 0.13.2 -- An enhanced Interactive Python....In [1]: lis = ['a'*10]*10In [2]: lisOut[2]: ['aaaaaaaaaa', 'aaaaaaaaaa', 'aaaaaaaaaa',...

View Article

How to make Ipython output a list without line breaks after elements?

The IPython console prints a list of elements with line breaks so that each element is displayed in its own line. This is usually a feature, but in my case it is a bug: I need to copy and paste long...

View Article
Browsing latest articles
Browse All 4 View Live


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