Open juggah opened 4 years ago
Could you please upload the data dot1x_results
somewhere?
I will need it to be able to reproduce this bug.
Yeah sure. http://2dabeat.org/dot1x_results
Thanks, I'll look into this.
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.
def print_bookshelf(self):
table = [['INDEX','TITLE','AUTHOR','COLOR','NUMPAGES'],
for book in BookShelf._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 can't reproduce the bug. Can you still reproduce it @juggah? Maybe it was fixed, in which case issue should be closed.
>>> import tabulate
>>> tabulate.__version__
'0.9.0'
>>> print(tabulate.tabulate(table, headers="firstrow", tablefmt='github'))
| Hostname | Interface | Description | Trunk | Dot1x | Mab | Access VLAN | Voice VLAN | Authdead VLAN | Guest VLAN | Authopen |
|--------------|--------------------------|-----------------------------------------------------|---------|---------|---------|---------------|--------------|-----------------|--------------|------------|
| sw-bbz-stu-1 | GigabitEthernet1/0/1 | RT - Gi 0/0 Telekom Hauptweg | - | - | - | 96 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/2 | rt-bbz-stu-1 Gi0/0/0 - WAN-Seite - | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/3 | rt-bbz-stu-1 Gi0/0/1 - LAN-Seite - | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/4 | AP-STU-1 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/5 | AP-STU-3 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/6 | AP-STU-5 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/7 | AP-STU-7 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/8 | AP-STU-9 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/9 | AP-STU-11 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/10 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/11 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/12 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/13 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/14 | Fileserver FSSTU02 10.60.7.101 | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/15 | Fileserver FSSTU01 10.60.7.100 | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/16 | USV | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/17 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/18 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/19 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/20 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/21 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/22 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/23 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/24 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/25 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/26 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet1/0/27 | sw-bbz-stu-sr1 Gi 0/9 Medientechnik Schulungsraum 1 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/28 | sw-bbz-stu-sr2 Gi 0/9 Medientechnik Schulungsraum 2 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/29 | sw-bbz-stu-sr3 Gi 0/9 Medientechnik Schulungsraum 3 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/30 | sw-bbz-stu-sr4 Gi 0/9 Medientechnik Schulungsraum 4 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/31 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/32 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/33 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/34 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/35 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet1/0/36 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/37 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/38 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/39 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/40 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/41 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/42 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/43 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/44 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/45 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/46 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/47 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet1/0/48 | wlc-bbz-stu-1 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/1 | RT - Gi 0/0 Telekom Backupweg | - | - | - | 96 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/2 | rt-bbz-stu-2 Gi0/0/0 - WAN-Seite - | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/3 | rt-bbz-stu-2 Gi0/0/1 - LAN-Seite - | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/4 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/5 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/6 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/7 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/8 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/9 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/10 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/11 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/12 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/13 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/14 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/15 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/16 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/17 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/18 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/19 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/20 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/21 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/22 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/23 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/24 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/25 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/26 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/27 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/28 | Data& VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/29 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | GigabitEthernet2/0/30 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/31 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/32 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/33 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/34 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/35 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet2/0/36 | Telefon im Schaltschrank | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/37 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/38 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/39 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/40 | DRUCKER & DOT1X | - | enabled | - | 7 | 107 | 7 | - | - |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/41 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/42 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/43 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/44 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/45 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/46 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/47 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet2/0/48 | wlc-bbz-stu-2 | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/1 | AP-STU-2 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/2 | AP-STU-4 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/3 | AP-STU-6 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/4 | AP-STU-8 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/5 | AP-STU-10 | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/6 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/7 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/8 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/9 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/10 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/11 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/12 | AP-STU | - | - | - | 7 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/13 | HiPath-TK Customer-LAN 10.60.107.21-24 | - | - | - | 107 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/14 | HiPath-TK STMI4 10.60.107.26 | - | - | - | 107 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/15 | AP NCUI | - | - | - | 107 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/16 | STMI | - | - | - | 107 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/17 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/18 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/19 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/20 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/21 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/22 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/23 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/24 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/25 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/26 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | GigabitEthernet3/0/27 | sw-bbz-stu-cr Gi 0/9 Medientechnik Clubraum | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/28 | sw-bbz-stu-er Gi 0/9 Medientechnik EDV-Raum | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/29 | sw-bbz-stu-4 Gi 0/9 Switch Empfang | trunk | - | - | - | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/30 | Medientechnik | - | - | - | 3198 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/31 | Apple-TV B3 | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/32 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/33 | Apple-TV B1 | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/34 | Apple-TV B2 | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/35 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | GigabitEthernet3/0/36 | Apple-TV | - | - | - | 3070 | - | - | - | - |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/37 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/38 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/39 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/40 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/41 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/42 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/43 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/44 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/45 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/46 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/47 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
| sw-bbz-stu-1 | TenGigabitEthernet3/0/48 | Data & VOIP | - | enabled | enabled | 7 | 107 | 7 | - | on |
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"))
#Has bug
$ python3 -u make_my_table.py
#No bug
$ python3 make_my_table.py
I ran this on Windows 10 with python 3.8.2.
Hi,
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.
Thanks for the very useful lib
Version: Python 3.7.4 tabulate 0.8.6 ... print (dot1x_results) print (tabulate(dot1x_results, headers="firstrow", tablefmt='github')) ....