0

I am trying to print a dictionary in jupyter-notebook and got this:

Screen-Shot-2019-04-20-at-11-44-58-AM.png

As can be seen, each value in the dictionary is a list of tuples. For the first two keys, the tuples are printed on new lines. However, for the third key, the list of tuples is shown on the same line.

I am wondering what causes this difference in behavior?

Phoenix Mu
  • 648
  • 7
  • 12
  • 1
    Probably because if they valued for the first 2 keys were to be printed on the same line, those lines would wrap in the output area and look like gibberish. Jupyter is just trying to make things look presentable. – rdas Apr 20 '19 at 17:01

1 Answers1

0

There is a lot of questions on jupyter cell width. You can configure jupyter width to 100% to show longer lines in one line as well. Also take a look at Jupyter Lab.

Jupyter Width Setting

Moe
  • 991
  • 2
  • 10
  • 24