##// END OF EJS Templates
Merge pull request #4903 from minrk/https-youtube...
Thomas Kluyver -
r14831:1fb60969 merge
parent child Browse files
Show More
@@ -199,7 +199,7 b' class IFrame(object):'
199 class YouTubeVideo(IFrame):
199 class YouTubeVideo(IFrame):
200 """Class for embedding a YouTube Video in an IPython session, based on its video id.
200 """Class for embedding a YouTube Video in an IPython session, based on its video id.
201
201
202 e.g. to embed the video from http://www.youtube.com/watch?v=foo , you would
202 e.g. to embed the video from https://www.youtube.com/watch?v=foo , you would
203 do::
203 do::
204
204
205 vid = YouTubeVideo("foo")
205 vid = YouTubeVideo("foo")
@@ -220,7 +220,7 b' class YouTubeVideo(IFrame):'
220 """
220 """
221
221
222 def __init__(self, id, width=400, height=300, **kwargs):
222 def __init__(self, id, width=400, height=300, **kwargs):
223 src = "http://www.youtube.com/embed/{0}".format(id)
223 src = "https://www.youtube.com/embed/{0}".format(id)
224 super(YouTubeVideo, self).__init__(src, width, height, **kwargs)
224 super(YouTubeVideo, self).__init__(src, width, height, **kwargs)
225
225
226 class VimeoVideo(IFrame):
226 class VimeoVideo(IFrame):
@@ -229,7 +229,7 b' class VimeoVideo(IFrame):'
229 """
229 """
230
230
231 def __init__(self, id, width=400, height=300, **kwargs):
231 def __init__(self, id, width=400, height=300, **kwargs):
232 src="http://player.vimeo.com/video/{0}".format(id)
232 src="https://player.vimeo.com/video/{0}".format(id)
233 super(VimeoVideo, self).__init__(src, width, height, **kwargs)
233 super(VimeoVideo, self).__init__(src, width, height, **kwargs)
234
234
235 class ScribdDocument(IFrame):
235 class ScribdDocument(IFrame):
@@ -245,7 +245,7 b' class ScribdDocument(IFrame):'
245 """
245 """
246
246
247 def __init__(self, id, width=400, height=300, **kwargs):
247 def __init__(self, id, width=400, height=300, **kwargs):
248 src="http://www.scribd.com/embeds/{0}/content".format(id)
248 src="https://www.scribd.com/embeds/{0}/content".format(id)
249 super(ScribdDocument, self).__init__(src, width, height, **kwargs)
249 super(ScribdDocument, self).__init__(src, width, height, **kwargs)
250
250
251 class FileLink(object):
251 class FileLink(object):
General Comments 0
You need to be logged in to leave comments. Login now