def _repr_html_(self): quantities = list(self.data.values()) return quantities.qtable(*quantities)
def table(self, *quants, maxcols=5, latexonly=False): quants = [self[quant] for quant in quants] if latexonly: return quantities.qtable(*quants, html=False, maxcols=maxcols)[0] else: return render_latex(quantities.qtable(*quants, maxcols=maxcols))