jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages
https://nbviewer.jupyter.org
Other
2.21k stars 547 forks source link

HTML Import Not Showing On GitHub #990

Open ProsperousHeart opened 2 years ago

ProsperousHeart commented 2 years ago

Describe the bug When using the following, it does not render on GitHub - works fine locally:

# https://gist.github.com/christopherlovell/e3e70880c0b0ad666e7b5fe311320a62#file-display-py-L5
from IPython.display import HTML

# Youtube or Facebook embed
HTML('<iframe src="https://www.facebook.com/plugins/video.php?height=314&href=https%3A%2F%2Fwww.facebook.com%2FKitten4Him%2Fvideos%2F613908749722124%2F&show_text=false&width=560&t=0" width="560" height="314" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowFullScreen="true"></iframe>')

To Reproduce Steps to reproduce the behavior:

  1. Create a Jupyter notebook locally with above or similar code
  2. Push to Github repo
  3. Attempt to view notebook

Expected behavior Be able to view YouTube/Facebook/Vimeo video in notebook in GitHub as able to do locally.

Screenshots You can see current example here.

Desktop (please complete the following information):