IPython Notebook output cell is truncating contents of my list

后端 未结 9 1589
轮回少年
轮回少年 2020-12-01 11:29

I have a long list (about 4000 items) whose content is suppressed when I try to display it in an ipython notebook output cell. Maybe two-thirds is shown, but the end has a

相关标签:
9条回答
  • 2020-12-01 12:24

    A quick hack if you're using pandas is to do

    from pandas import DataFrame
    from IPython.display import HTML
    HTML(DataFrame(myList).to_html())
    
    0 讨论(0)
  • 2020-12-01 12:24

    just use the print command instead of calling the list directly. Like print mylist . It would not truncate then.

    0 讨论(0)
  • 2020-12-01 12:29
    pd.options.display.max_rows = 4000
    

    worked for me

    See : http://pandas.pydata.org/pandas-docs/stable/options.html

    0 讨论(0)
提交回复
热议问题