Display tabular data in jupyter

from this question on stackoverflow I found a very neat way to display a 2d array in a jupyter. Maybe it will be helpful to somebody. I found it useful to analyze predictions for a batch this way.


To make it easier for people to copy and paste, here’s a text version of the code:

from IPython.display import HTML, display
import tabulate
display(HTML(tabulate.tabulate(pred, tablefmt='html')

Nice, now I can’t wait for a 3-D data viewer, where you can (sorta) rotate a cube or something like that, lol :slight_smile: This is nice to know, thanks for sharing!!!

1 Like