r/IPython • • Feb 23 '21

Display and HTML file?

I'm trying to display an HTML file I generate in my notebook. I've looked through the internet to try to find out how to do this but it doesn't display anything.

from IPython.display import display, HTML, IFrame
HTML(open('/content/drive/MyDrive/pipeline_outputs/pca.html').read())

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/llub888 Feb 26 '21

I tried that just now and it displays nothing. I just used flask to view it.