Embedding URLs, PDFs, and Youtube Videos

Display it right there!

URLs


In [1]:
#Note that http urls will not be displayed. Only https are allowed inside the Iframe
from IPython.display import IFrame
IFrame('https://en.wikipedia.org/wiki/HTTPS', width=800, height=450)


Out[1]:

PDFs


In [2]:
from IPython.display import IFrame
IFrame('https://arxiv.org/pdf/1406.2661.pdf', width=800, height=450)


Out[2]:

Youtube Videos


In [3]:
from IPython.display import YouTubeVideo
YouTubeVideo('mJeNghZXtMo', width=800, height=300)


Out[3]:

In [ ]: