getting blank cells in html.table
I would like the following to give me a blank spot in a table in the notebook.
html.table([[1,None],[3,4]])
Unfortunately, it instead LaTeXs it to \mathrm{None}
, which jsmath can't handle in any case. But I don't really want that behavior of latex()
to change, but rather to figure out how to get the blank spot in the table without actually hacking the code of html.table
(this is supposed to work on a server which is only updated once a semester).
I built an EmptyCell class which changed _latex_ before realizing that even '' gives an empty cell.. is it too awkward to preprocess the table contents?
That's no problem at all. Are you saying that I could replace with an empty string? I didn't think about that.
Yes, this works. Can you make that an ANSWER so I can ACCEPT it? :-) Preferably with a nice example.
PS - I ran into trouble because I had tuples. So I had to do lists. But that was no problem either.