Displaying Youtube clip in python

I am new to python and am trying to download a short clip in my python code. Is there a way to display a YouTube clip (or any other url support code) using the python command? Something like iframe tag with src HTML?

thank

+3


source to share


1 answer


Your question is flagged ipython

and IPython allows you to embed YouTube video in notepad,

from IPython.display import YouTubeVideo
# a talk about IPython at Sage Days at U. Washington, Seattle.
# Video credit: William Stein.
YouTubeVideo('1j_HxD4iLn8')

      



See live example: http://nbviewer.ipython.org/github/ipython/ipython/blob/1.x/examples/notebooks/Part%205%20-%20Rich%20Display%20System.ipynb#Video

+20


source







All Articles