This is a tricky issue. The formatting is controlled by functions that are set in
ob-ipython-mime-formatters. The html formatting is controlled by
ob-ipython-format-text/html. The issue is that the output is raw html, which is very inconvenient in an org-file, especially when it is very long.
ob-ipython-preview-html was an approach to put an overlay on the html blocks. How that is done is in
To get what you want, you should create a function like
ob-ipython-format-text/html that would create a temp html file, run the html to image program, save it and put a link to the image that would show it. I have had mixed luck converting html to images. A reasonable alternative might be to just save the html to a file, and link to it.
Some ways to suppress the html output are:
:display text/plain in the src block header.
or write your own formatter like this:
(defun my-format-html (_file _value)
(setf (cdr (assoc 'text/html ob-ipython-mime-formatters)) 'my-format-html)
I am transitioning away from ob-ipython in scimax, and moving towards emacs-jupyter.