Just had an Oh My F***ing Gosh #Jupyter #Python moment:

Starting to think of demo notebooks and hacked together a "show_page()" function to display an iframe with a webpage in it.

I *thought* I was just fetching and showing rendered HTML and was fine with that.

Then I clicked the home link and discover that I'm actually embedding live little web windows in my notebooks....

Wait, What, Wow How?

Never knew ipthon.display was that friggin awesome and cool.

Just using:

iframe_html = f"""
<iframe src="{html.escape(url)}"
style="width: 100%; height: {height}px; border: none;"
loading="lazy"
sandbox="allow-scripts allow-same-origin allow-popups">
</iframe>
"""
display(HTML(iframe_html))

to just put a few pages in boxes in a notebook.... might soon become the predominant way I consume many bits of the web.

That's just too damn magic.

@stevenaleach For more Wow! look at _repr_html_ :-)