You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tabulate stops printing table inbetween when processing list with many entries #33
Im using tabulate to display config data which is stored in a list. When the list has a lot of entries tabulate doesnt display them all and stops somewhere in between. Also the point
of stopping is different when I use tablefmt='fancy_grid' for example.
Ive tried to combine the screenshots so you can see that the output stops at "interface GigabitEthernet2/0/23" although the list contains a lot more elements.
changed the title [-]tabulate stops printing table inbetween when processing list in list[/-][+]tabulate stops printing table inbetween when processing list with many entries[/+]on Jan 13, 2020
Hi, this is still happening. I have a list of 100 lists of 5 strings. It prints just fine if I go entry by entry with print, but it fails with tabulate. It stops in the middle of the 50'th row (by count, not by index). This is a BIG problem. Is there a solution yet, or known limitation?
#=====================================================================# PRINT_BOOKSHELF()# Prints all bookshelf entries in its current order.# Full-version with spoiler fields (for debugging) are commented out.defprint_bookshelf(self):
table= [['INDEX','TITLE','AUTHOR','COLOR','NUMPAGES'],
forbookinBookShelf._books:
table.append([str(book.index),book.title,book.author,
book.color,str(book.numPages)])
print(tabulate(table,headers="firstrow",))
print(tabulate(table, headers="firstrow", tablefmt="fancy_grid"))
EDIT: hmm...maybe not that big. It prints all the rows just fine when I set tablefmt="plain"
I have the same issue, somewhere in the middle of the table it stops printing. I tried with tablefmt="github" and "plain", the only difference is where the cutoff happens.
Unfortunately I cant share my dataset, but some excertps:
Here you can see the data contains 95 entries, with the last row having a value of 0.04something in the second column:
You can see the data stops in the middle of the table and even cuts off the columns of the last row:
The cutoff is in line 48, so almost half of the table.
Most current version is in use:
> python.exe -m pip show tabulate
Name: tabulate
Version: 0.9.0
Summary: Pretty-print tabular data
Home-page:
Author:
Author-email: Sergey Astanin <s.astanin@gmail.com>
I can reproduce the issue if I run python unbuffered and I have a multi-line cells on the first row.
#make_my_table.py
import tabulate
my_table = []
for i in range(400):
row = ["\n".join([str(j) for j in range(14)]), str([i,i]), str([i,i,i])]
my_table.append(row)
print(tabulate.tabulate(my_table, tablefmt="simple_grid"))
Activity
[-]tabulate stops printing table inbetween when processing list in list[/-][+]tabulate stops printing table inbetween when processing list with many entries[/+]astanin commentedon Jan 15, 2020
Could you please upload the data
dot1x_resultssomewhere?I will need it to be able to reproduce this bug.
juggah commentedon Jan 15, 2020
Yeah sure. http://2dabeat.org/dot1x_results
astanin commentedon Jan 15, 2020
Thanks, I'll look into this.
SJT1988 commentedon Jul 22, 2022
Hi, this is still happening. I have a list of 100 lists of 5 strings. It prints just fine if I go entry by entry with print, but it fails with tabulate. It stops in the middle of the 50'th row (by count, not by index). This is a BIG problem. Is there a solution yet, or known limitation?
EDIT: hmm...maybe not that big. It prints all the rows just fine when I set
tablefmt="plain"eliegoudout commentedon Nov 29, 2022
I can't reproduce the bug. Can you still reproduce it @juggah? Maybe it was fixed, in which case issue should be closed.
jbreu commentedon Jun 13, 2023
I have the same issue, somewhere in the middle of the table it stops printing. I tried with tablefmt="github" and "plain", the only difference is where the cutoff happens.
Unfortunately I cant share my dataset, but some excertps:
Here you can see the data contains 95 entries, with the last row having a value of 0.04something in the second column:

You can see the data stops in the middle of the table and even cuts off the columns of the last row:

The cutoff is in line 48, so almost half of the table.
Most current version is in use:
trisabits commentedon Jun 29, 2023
I can reproduce the issue if I run python unbuffered and I have a multi-line cells on the first row.
I ran this on Windows 10 with python 3.8.2.