<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 May 2014 18:46, Simon Cropper <span dir="ltr"><<a href="mailto:simoncropper@fossworkflowguides.com" target="_blank">simoncropper@fossworkflowguides.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=":7s2" class="a3s" style="overflow:hidden">How do you use your scripts? Can you provide an example. I looked at<br>
your GIST but could not find an explanation of how to use it.</div></blockquote></div><br></div><div class="gmail_extra">To create a table in one shot:<br><br></div><div class="gmail_extra">Table(TableHeaderRow('Planet', 'Orbit in Earth days'),<br>
</div><div class="gmail_extra">['Mercury', 88],<br></div><div class="gmail_extra">['Venus', 584])<br><br></div><div class="gmail_extra">To build it up row-by-row:<br><br></div><div class="gmail_extra">t = Table(TableHeaderRow('Planet', 'Orbit in Earth days'))<br>
</div><div class="gmail_extra">for planet in solar_system:<br></div><div class="gmail_extra"> t.append_row(<a href="http://planet.name">planet.name</a>, planet.orbit_time)<br><br></div><div class="gmail_extra">To display it:<br>
<br></div><div class="gmail_extra">t # At the end of a cell<br></div><div class="gmail_extra">IPython.display.display(t) # Anywhere in the code<br><br></div><div class="gmail_extra">Thomas<br></div></div>