Issue
I am new to python, and attempting to load a short clip in my python code. Is there is a way on displaying a youtube (or any other url support code) clip via python command? Something like iframe tag with src of HTML?
Thanks
Solution
Your question is tagged ipython
, and IPython does allow you to embed a YouTube video in the notebook,
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 here: http://nbviewer.ipython.org/github/ipython/ipython/blob/1.x/examples/notebooks/Part%205%20-%20Rich%20Display%20System.ipynb#Video
Answered By - bakkal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.