From 7f5b660aaceb08f5fc5ff2190674d6f47a266845 2012-10-30 22:25:45 From: Danny Staple Date: 2012-10-30 22:25:45 Subject: [PATCH] Fixed some silly mistakes Should've checked this - simple pylint. Now tested. --- diff --git a/IPython/lib/display.py b/IPython/lib/display.py index 3297fa8..912e400 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -21,6 +21,8 @@ class YouTubeVideo(object): vid = YouTubeVideo("abc", start=30) display(vid) + To calculate seconds from time as hours, minutes, seconds use int(timedelta(hours=1, minutes=46, seconds=40).total_seconds()) + Other parameters can be provided as documented at https://developers.google.com/youtube/player_parameters#parameter-subheader """ @@ -29,7 +31,7 @@ class YouTubeVideo(object): self.id = id self.width = width self.height = height - self.params = **kwargs + self.params = kwargs def _repr_html_(self): """return YouTube embed iframe for this video id""" @@ -45,5 +47,4 @@ class YouTubeVideo(object): frameborder="0" allowfullscreen > - """%(self.width, self.height, self.id, self.start, params) - + """%(self.width, self.height, self.id, params) \ No newline at end of file