Simple tip how to use HTML in Jupyter Notebook

I am preparing course for Python beginners and I was thinking how to do something they can try on their own computers quickly and immediately see results.

I would like to use Google Colab but when you want to present some results you usually want some graphical way for it containing images etc. And what is a better tip than HTML.

Here is a quick tip how to use HTML in your Jupyter Notebook.

from IPython.core.display import display, HTMLdisplay(HTML('<h1>Hello, world!</h1>'))
Google Colab and HTML in Output

--

--