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
table.show_in_notebook hangs for modestly sized table (~4500 rows) #11836
I attempted to view an astropy table using the show_in_notebook() feature, but it caused my Jupyter notebook to hang/crash, instead. I don't know what's causing the task to crash; I would not normally expect a ~4500-row table to exceed memory limits for something like this, but perhaps it is too large of a table for this feature? (If so, I'd expect a warning or exception, rather than the browser locking up.)
I investigated a little further, and found that I can explore the performance more carefully by doing table[0:100].show_in_browser(), and gradually increasing the number of rows included. On my system, for this file, show_in_notebook() has the following performance for the following table subset lengths (timings estimated using phone stopwatch app):
200 rows: below ~1s
300 rows: ~2s
400 rows: ~3s
500 rows: ~4s
750 rows: ~11s
1000 rows: ~25s
1500 rows: 1m15s
2000 rows: 2m18s
I don't have the patience to go further, but the trend is clearly superlinear and gets really sluggish to the point of uselesness beyond 500-1000 rows.
The following two tables from the literature (Robberto et al. 2020, for those curious) each cause this crash for me:
Activity