Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "metadata": {
- "name": ""
- },
- "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') \n",
- "#? does not work with time code\n",
- "#don't use ? use #t"
- ],
- "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",
- " "
- ],
- "metadata": {},
- "output_type": "pyout",
- "prompt_number": 20,
- "text": [
- "<IPython.lib.display.YouTubeVideo at 0x4374f50>"
- ]
- }
- ],
- "prompt_number": 20
- },
- {
- "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": [
- "Ipython.diplay?"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "Object `Ipython.diplay` not found.\n"
- ]
- }
- ],
- "prompt_number": 3
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "from IPython.display import YouTubeVideo\n"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 10
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "IPython.display?"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "Object `IPython.display` not found.\n"
- ]
- }
- ],
- "prompt_number": 11
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%history -l 10-11"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stderr",
- "text": [
- "UsageError: argument -l: invalid int value: '10-11'"
- ]
- }
- ],
- "prompt_number": 12
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%history?"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 13
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%history -n 10-11 -o"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- " 10: from IPython.display import YouTubeVideo\n",
- " 11: IPython.display?\n"
- ]
- }
- ],
- "prompt_number": 19
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%history -o -n 10-11"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- " 10: from IPython.display import YouTubeVideo\n",
- " 11: IPython.display?\n"
- ]
- }
- ],
- "prompt_number": 21
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "%history -o"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "from IPython.display import YouTubeVideo\n",
- "# Khan Academy on lists\n",
- "YouTubeVideo('zEyEC34MY1A#t=1m23s') \n",
- "#? does not work with time code\n",
- "#don't use ? use #\n",
- "<IPython.lib.display.YouTubeVideo at 0x4374590>\n",
- "from IPython.display import YouTubeVideo\n",
- "# Khan Academy on lists\n",
- "YouTubeVideo('zEyEC34MY1A#t=1m23s') \n",
- "#? does not work with time code\n",
- "#don't use ? use #\n",
- "<IPython.lib.display.YouTubeVideo at 0x4374650>\n",
- "Ipython.diplay?\n",
- "from IPython.display import YouTubeVideo\n",
- "Ipython.display?\n",
- "Ipython.display?\n",
- "%history\n",
- "IPython.display?\n",
- "IPython.display?\n",
- "from IPython.display import YouTubeVideo\n",
- "IPython.display?\n",
- "%history -l 10-11\n",
- "%history?\n",
- "%history -n 10-11\n",
- "%history -n 10-11 -o\n",
- "%history -o -n 10-11\n",
- "%history -o 10-11 -n 10-11\n",
- "%history -o -n 10-11\n",
- "%history -n 10-11 -o\n",
- "from IPython.display import YouTubeVideo\n",
- "# Khan Academy on lists\n",
- "YouTubeVideo('zEyEC34MY1A#t=1m23s') \n",
- "#? does not work with time code\n",
- "#don't use ? use #t\n",
- "<IPython.lib.display.YouTubeVideo at 0x4374f50>\n",
- "%history -o -n 10-11\n",
- "%history -o\n"
- ]
- }
- ],
- "prompt_number": 22
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [],
- "language": "python",
- "metadata": {},
- "outputs": []
- }
- ],
- "metadata": {}
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement