Last active
November 18, 2023 22:22
-
-
Save christopherlovell/e3e70880c0b0ad666e7b5fe311320a62 to your computer and use it in GitHub Desktop.
display youtube video in jupyter notebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.display import HTML | |
# Youtube | |
HTML('<iframe width="560" height="315" src="https://www.youtube.com/embed/S_f2qV2_U00?rel=0&controls=0&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>') |
Quite nice, but how could I do that if I'm running node.js on my Jupyter notebook?
Thank you bro :)
Thank you for this code.
Useful. Thanks!
from IPython.display import Audio,Image, YouTubeVideo
id='ER4WhBxM8DY '
YouTubeVideo(id=id,width=600,height=300)
Fantastic, thank you!
Im looking for a way to insert a youtube video or any local/remote video into the cells in Jupyter Notebook as part of a presentation (Slide mode). Is this possible?
many thanks
Thank you. Simple and working perfect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A little method that summarizes what has been discussed here: