Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "metadata": {
- "name": "ipython support for youtube videos"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "from IPython.display import YouTubeVideo\n",
- "# Khan Academy on lists\n",
- "YouTubeVideo('zEyEC34MY1A?t=1m23s') #does not work with time code"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- "\n",
- " <iframe\n",
- " width=\"400\"\n",
- " height=300\"\n",
- " src=\"http://www.youtube.com/embed/zEyEC34MY1A?t=1m23s\"\n",
- " frameborder=\"0\"\n",
- " allowfullscreen\n",
- " ></iframe>\n",
- " "
- ],
- "output_type": "pyout",
- "prompt_number": 2,
- "text": [
- "<IPython.lib.display.YouTubeVideo at 0x442c610>"
- ]
- }
- ],
- "prompt_number": 2
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "from IPython.display import YouTubeVideo\n",
- "# Khan Academy on lists\n",
- "YouTubeVideo('zEyEC34MY1A') #does not work with time code"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "html": [
- "\n",
- " <iframe\n",
- " width=\"400\"\n",
- " height=300\"\n",
- " src=\"http://www.youtube.com/embed/zEyEC34MY1A\"\n",
- " frameborder=\"0\"\n",
- " allowfullscreen\n",
- " ></iframe>\n",
- " "
- ],
- "output_type": "pyout",
- "prompt_number": 3,
- "text": [
- "<IPython.lib.display.YouTubeVideo at 0x442c650>"
- ]
- }
- ],
- "prompt_number": 3
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [],
- "language": "python",
- "metadata": {},
- "outputs": []
- }
- ],
- "metadata": {}
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement