Skip to content

Instantly share code, notes, and snippets.

@pvrego
Forked from christopherlovell/display.py
Last active September 26, 2020 15:02
Show Gist options
  • Save pvrego/90bbf10e151c746c3520e931d144ac48 to your computer and use it in GitHub Desktop.
Save pvrego/90bbf10e151c746c3520e931d144ac48 to your computer and use it in GitHub Desktop.
display youtube video in jupyter notebook

Display youtube video in jupyter notebook

from IPython.display import HTML
# Youtube
HTML('<iframe width="560" height="315" src="https://www.youtube.com/embed/S_f2qV2_U00?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>')
# Vimeo
HTML('<iframe src="https://player.vimeo.com/video/26763844?title=0&byline=0&portrait=0" width="700" height="394" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe><p><a href="https://vimeo.com/26763844">BAXTER DURY - CLAIRE (Dir Cut)</a> from <a href="https://vimeo.com/dannysangra">Danny Sangra</a> on <a href="https://vimeo.com">Vimeo</a>.</p>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment