Twi
Twi

Reputation: 825

WinPython/Spyder IDE console linebreak issue

My problem can be seen on this image: enter image description here

So the problem is, that Spyder break the line and my output can't be display in "one" line. How can I change this?

Upvotes: 2

Views: 2419

Answers (2)

Rodolfo Bugarin
Rodolfo Bugarin

Reputation: 709

This solves your question:
pd.set_option('display.width', 170)

You can try different numbers from 170, until you are satisfied with the outupt you want in your Spyder console.

Upvotes: 1

Carlos Cordoba
Carlos Cordoba

Reputation: 34156

(Spyder dev here) Spyder doesn't break lines in its Python or IPython consoles.

You don't say explicitly, but it seems your image is the result of printing a Pandas DataFrame.

If that's the case, please see this answer:

Python pandas, how to widen output display to see more columns?

Upvotes: 1

Related Questions