<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 July 2014 14:27, bjonen <span dir="ltr"><<a href="mailto:bjonen@gmail.com" target="_blank">bjonen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div id=":179" class="a3s" style="overflow:hidden">I am working on a patch for pandas that allows a dataframe's string<br>
representation to scale with the height and width of the terminal.<br>
It would be nice to make this possible in the ipython notebook also.<br>
However, for this I would need a way to infer the current size of a cell in<br>
the notebook to cut the dataframe appropriately.<br>
<br>
Anybody know a way to do this?</div></blockquote></div><br></div><div class="gmail_extra">There's certainly no practical way to do this at the moment, and I don't think we should add one. For instance, what if the user resizes their browser after displaying it? What if they share the notebook with people whose screens are bigger or smaller? I don't think trying to tailor the output to the screen size like that makes sense.<br>

<br>Thomas<br></div></div>