When you want to display HTML in the output in Jupyter notebook, google variously,
from IPython.display import HTML
HTML("<h1>Test</h1>")
HTML("<h2>test<h2>")
If you find that it's OK, but it doesn't work, you may be able to work by enclosing HTML
in display
as shown below.
from IPython.display import display, HTML
display(HTML("<h1>Test</h1>"))
display(HTML("<h2>test<h2>"))
end
Recommended Posts