[IPython-dev] Getting the size of ipython notebook cell

bjonen bjonen at gmail.com
Wed Jul 9 11:56:57 EDT 2014

> Truncation is never a good idea, you will always get the truncation wrong
> in some cases. 

Not sure why you think it is a bad idea. If you think about large datasets:
In my opinion it is much more convenient to only see a start and the end of
the frame (both row and column direction) instead of having to scroll
through hundreds of columns (see
https://github.com/pydata/pandas/pull/7086). Of course this would be an
optional behavior. 

> Javascript it not totally an answer either, you will/might not be able to
> listen for a resize event.
> I would investigate pure css stuff like that :

> https://css-tricks.com/examples/ResponsiveTables/responsive.php

> and use bootstrap responsive utilities:

> http://getbootstrap.com/css/#responsive-utilities

> If you really want responsive table with dynamism and javascript I would 
> suggest doing it in separate package like mpld3 does for matplotlib, or
> cyrile rossant handson table.

> http://nbviewer.ipython.org/gist/rossant/9463955

> Publishing scripts tag is always brittle and unreliable.

Thanks for your help! Sounds like what I had in mind is difficult and
probably not worth the trouble. 


View this message in context: http://python.6.x6.nabble.com/Getting-the-size-of-ipython-notebook-cell-tp5063264p5063532.html
Sent from the IPython - Development mailing list archive at Nabble.com.

More information about the IPython-dev mailing list