from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))
def display_html(filename):
from IPython.core.display import display, HTML
with open(filename, 'r') as f:
display(HTML(f.read()))
display_html('test.html')