Advertisement
pleabargain

bad youtube rendering ipynb

Apr 30th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.08 KB | None | 0 0
  1. {
  2.  "metadata": {
  3.   "name": "ipython support for youtube videos"
  4.  },
  5.  "nbformat": 3,
  6.  "nbformat_minor": 0,
  7.  "worksheets": [
  8.   {
  9.    "cells": [
  10.     {
  11.      "cell_type": "code",
  12.      "collapsed": false,
  13.      "input": [
  14.       "from IPython.display import YouTubeVideo\n",
  15.       "# Khan Academy on lists\n",
  16.       "YouTubeVideo('zEyEC34MY1A?t=1m23s') #does not work with time code"
  17.      ],
  18.      "language": "python",
  19.      "metadata": {},
  20.      "outputs": [
  21.       {
  22.        "html": [
  23.         "\n",
  24.         "        <iframe\n",
  25.         "            width=\"400\"\n",
  26.         "            height=300\"\n",
  27.         "            src=\"http://www.youtube.com/embed/zEyEC34MY1A?t=1m23s\"\n",
  28.         "            frameborder=\"0\"\n",
  29.         "            allowfullscreen\n",
  30.         "        ></iframe>\n",
  31.         "        "
  32.        ],
  33.        "output_type": "pyout",
  34.        "prompt_number": 2,
  35.        "text": [
  36.         "<IPython.lib.display.YouTubeVideo at 0x442c610>"
  37.        ]
  38.       }
  39.      ],
  40.      "prompt_number": 2
  41.     },
  42.     {
  43.      "cell_type": "code",
  44.      "collapsed": false,
  45.      "input": [
  46.       "from IPython.display import YouTubeVideo\n",
  47.       "# Khan Academy on lists\n",
  48.       "YouTubeVideo('zEyEC34MY1A') #does not work with time code"
  49.      ],
  50.      "language": "python",
  51.      "metadata": {},
  52.      "outputs": [
  53.       {
  54.        "html": [
  55.         "\n",
  56.         "        <iframe\n",
  57.         "            width=\"400\"\n",
  58.         "            height=300\"\n",
  59.         "            src=\"http://www.youtube.com/embed/zEyEC34MY1A\"\n",
  60.         "            frameborder=\"0\"\n",
  61.         "            allowfullscreen\n",
  62.         "        ></iframe>\n",
  63.         "        "
  64.        ],
  65.        "output_type": "pyout",
  66.        "prompt_number": 3,
  67.        "text": [
  68.         "<IPython.lib.display.YouTubeVideo at 0x442c650>"
  69.        ]
  70.       }
  71.      ],
  72.      "prompt_number": 3
  73.     },
  74.     {
  75.      "cell_type": "code",
  76.      "collapsed": false,
  77.      "input": [],
  78.      "language": "python",
  79.      "metadata": {},
  80.      "outputs": []
  81.     }
  82.    ],
  83.    "metadata": {}
  84.   }
  85.  ]
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement