Thursday, 10 January 2013

ipython video!


from IPython.display import HTML
video = open("animation.m4v", "rb").read()
video_encoded = video.encode("base64")
video_tag = '.format(video_encoded)
HTML(data=video_tag)

from http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/master/docs/examples/notebooks/00_notebook_tour.ipynb

No comments:

Post a Comment