Saving IPython HTML as PNG

  ipython, jupyter-notebook, python

I have an HTML code that I can display in the Jupyter notebook by using the following command:

from IPython.display import display, HTML

display(HTML(my_html_code))

However, I would like to save the output obtained from the code above as a PNG file, not only visualize it. How can I do this?

Source: Python Questions

LEAVE A COMMENT