IPython Documentation

Table Of Contents

Previous topic

lib.demo

Next topic

lib.guisupport

This Page

lib.display

Module: lib.display

Inheritance diagram for IPython.lib.display:

Various display related classes.

Authors : MinRK

YouTubeVideo

class IPython.lib.display.YouTubeVideo(id, width=400, height=300)

Bases: object

Class for embedding a YouTube Video in an IPython session, based on its video id.

e.g. to embed the video on this page:

http://www.youtube.com/watch?v=foo

you would do:

vid = YouTubeVideo(“foo”) display(vid)

__init__(id, width=400, height=300)