2

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?

Twi
  • 765
  • 3
  • 13
  • 29

2 Answers2

1

(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?

Community
  • 1
  • 1
Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
1

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.

Rodolfo Bugarin
  • 605
  • 6
  • 12