Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Will something like

class EmptyCell:
    def _latex_(self): return ''

EmptyCell = EmptyCell()

html.table([[1, EmptyCell], [3,4]])

work?

html.table([[1, ''], [3,4]])

Will should do the trick, or, if like me you've gotten too object-oriented for your own good, you can do something like

class EmptyCell:
    def _latex_(self): return ''

EmptyCell Empty = EmptyCell()

html.table([[1, EmptyCell], Empty], [3,4]])

work? which I'm only confessing to having written before even trying '' in the hopes that laughing at the above might help keep someone else from overthinking.