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 "...]", rather than all the contents of the list. How do I get ipython notebook to display the whole list instead of a cutoff version?
To show the full data without any hiding, you can use pd. set_option('display. max_rows', 500) and pd.
Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.
Hide cell inputs If you add the tag hide-input to a cell, then Jupyter Book will hide the cell but display the outputs.
pd.options.display.max_rows = 4000
worked for me
See : http://pandas.pydata.org/pandas-docs/stable/options.html
I know its a pretty old thread, but still wanted to post my answer in the hope it helps someone. You can change the number of max_seq_items shown by configuring the pandas options as follows:
pd.options.display.max_seq_items = 2000
This should work:
print(str(mylist))
Simple!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With