Better html writer, compatible with ipython-nb