s/render_latex/use_latex/ and allow to pick png or mathjax.
_print_latex_png should also use the _can_print_latex logic.
ipython: check for the Terminal case instead of the kernel.