{
 "metadata": {
  "name": "",
  "signature": "sha256:455ad8f0e6d498faf7dc03fb6ef6d1639d86d35b4efc383397152093059967cd"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Getting Good at IPython\n",
      "======================="
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "You are looking at an **IPython Notebook**, an interactive Python shell inside of a web browser. With it, you can run individual Python commands and immediately view their output.  It's basically the Matlab Desktop or Mathematica Notebook for Python.\n",
      "\n",
      "First, we recommend that you take the *User Interface Tour* in the Help Menu above."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Cells"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "An IPython Notebook is comprised of **cells**. Cells are just small units of code or text. For example, the text that you are reading is inside a *Markdown* cell. (More on that later.)\n",
      "\n",
      "*Code* cells allow you to edit, execute, and analyze small portions of Python code at a time. Here is a code cell:"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "1+2"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 5,
       "text": [
        "3"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Modes"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "The IPython Notebook has two different keyboard input modes. \n",
      "\n",
      "In **Edit Mode**, you type code/text into a cell. Edit Mode is indicated by a *green* cell border. \n",
      "\n",
      "To enter Edit Mode from Command Mode, press `Enter`. You can also double-click on a cell.\n",
      "\n",
      "To execute the code inside of a cell and move to the next cell, press `Shift-Enter`. (`Ctrl-Enter` will run the current cell without moving to the next cell. This is useful for rapidly tweaking the current cell.)\n",
      "\n",
      "In **Command Mode**, you can perform notebook level actions such as navigating among cells, selecting cells, moving cells, saving notebooks, displaying help. Command Mode is indicated by a *grey* cell border. \n",
      "\n",
      "To enter Command Mode from Edit Mode, press `Esc`. Other commands can also enter Command Mode, e.g. `Shift-Enter`.\n",
      "\n",
      "To display the Help Menu from Command Mode, press `h`. Use it often; `h` is your best friend."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Writing Text in Markdown"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Markdown is a markup language that is a superset of HTML. The Markdown specification is found here: http://daringfireball.net/projects/markdown/"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "A cell may contain Python code or Markdown code. To convert any Python cell to a markdown cell, press `m`."
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "For headings, we recommend that you use IPython's keyboard shortcuts. To change the text in a cell to a level-3 header, simply press `3`. For similar commands, press `h` to view the Help menu."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Writing Text in $\\LaTeX$"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "In a Markdown cell, you can also use $\\LaTeX$ syntax. Example input:"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "    $$ \\max_{||\\textbf{w}||=1} \\sum_{i=1}^{N} \\big| \\langle \\textbf{w}, \\textbf{x}_i - \\textbf{m} \\rangle \\big|^2 $$"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Output:"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "$$ \\max_{||\\textbf{w}||=1} \\sum_{i=1}^{N} \\big| \\langle \\textbf{w}, \\textbf{x}_i - \\textbf{m} \\rangle \\big|^2 $$"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Default Imports"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "If you run IPython inside the [`stanford-mir` Vagrant box](https://vagrantcloud.com/stevetjoa/stanford-mir) used for this workshop, every IPython notebook will automatically have the following packages imported: `numpy`, `scipy`, `matplotlib`."
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "In addition, several NumPy and matplotlib functions already exist in the IPython workspace:"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print arange(5)\n",
      "print randn(5)\n",
      "print hamming(5)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "[0 1 2 3 4]\n",
        "[ 0.57054542  1.86055336  0.36799909  0.04648987 -0.04230884]\n",
        "[ 0.08  0.54  1.    0.54  0.08]\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "plot(hamming(101))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 7,
       "text": [
        "[<matplotlib.lines.Line2D at 0x39bc090>]"
       ]
      },
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAD9CAYAAAC2l2x5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlclNX+B/APBpbXa1rmylB4BVlEQHOnjFLSTMmrVmhX\njcwozaWszCUFTYTspqZWmPuGuGMGo6FOqQguuOOCBYm4dFFRs5TF5/fH+YmiMICznJnn+bxfr16J\njDMfHvHLmfOc8z0OiqIoICIi1akiOwAREVkGCzwRkUqxwBMRqRQLPBGRSrHAExGpFAs8EZFKGS3w\nb731FurVq4dmzZqV+Zhhw4bB3d0dfn5+2L9/v9kDEhHRgzFa4ENDQ6HX68v8fEJCAk6dOoWMjAzM\nmTMH7733ntkDEhHRgzFa4J999lk89thjZX5+w4YNGDBgAACgTZs2yMvLw4ULF8ybkIiIHoijKX84\nJycHLi4uxR/rdDqcOXMG9erVK/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uXlIKCAqVbt27K5s2bNXUt\nMjMzS4zgy/raIyMjS8yCdO7cWdm1a5fR57boCL60NfI5OTmWfEmblZWVhf3796NNmza4cOFC8Y3o\nevXqaWZj2AcffICpU6eiSpU733ZavBaZmZmoU6cOQkND0aJFCwwaNAjXr1/X5LV4/PHHMXLkSDz5\n5JNo2LAhatWqhaCgIE1ei9vK+trPnj1bYhVjReqpRQs8NzcJf/75J3r16oUZM2agRo0aJT7n4OCg\nieu0ceNG1K1bF82bNy9zX4RWrkVhYSHS0tIwePBgpKWloXr16vdNQWjlWvz666+YPn06srKycPbs\nWfz5559YunRpicdo5VqUpryvvbzrYtECX5F19GpXUFCAXr16oV+/fujRowcA8VP5/PnzAIBz586h\nbt26MiNaRXJyMjZs2IBGjRqhT58+2Lp1K/r166fJa6HT6aDT6dCqVSsAQO/evZGWlob69etr7lrs\n3bsX7du3R+3ateHo6IiePXti165dmrwWt5X1b+JB9hxZtMBXZB29mimKgoEDB8Lb2xsjRowo/v3g\n4GAsWrQIALBo0aLiwq9mkZGRyM7ORmZmJlasWIEXXngBS5Ys0eS1qF+/PlxcXHDy5EkAQFJSEpo2\nbYru3btr7lp4enoiJSUFf//9NxRFQVJSEry9vTV5LW4r699EcHAwVqxYgfz8fGRmZiIjIwOtW7c2\n/mTmvmFwr4SEBKVJkyZK48aNlcjISEu/nE3Zvn274uDgoPj5+Sn+/v6Kv7+/kpiYqFy8eFHp2LGj\n6peAlcVgMCjdu3dXFEXR7LU4cOCA0rJlS8XX11f597//reTl5Wn2WkRHRxcvk+zfv7+Sn5+vmWsR\nEhKiNGjQQHFyclJ0Op0yf/58o1/75MmTlcaNGyseHh6KXq8v9/kdFIWNYoiI1IgnOhERqRQLPBGR\nSrHAExGpFAs8EZFKscATEakUCzwRkUr9Hx2GVd9Y9+9zAAAAAElFTkSuQmCC\n",
       "text": [
        "<matplotlib.figure.Figure at 0x37f1690>"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "To learn more about automatic imports, view the IPython configuration file at `~/.ipython/profile_default/ipython_config.py`."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Tab Autocompletion"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Tab autocompletion works in Command Window and the Editor.  After you type a few letters, press the `Tab` key and a popup will appear and show you all of the possible completions, including variable names and functions.  This prevents you from mistyping the names of variables -- a big time saver! \n",
      "     \n",
      "For example, type `scipy.` and then press `Tab`. You should see a list of members in the Python package `scipy`.\n",
      "\n",
      "Or type `scipy.sin`, then press `Tab` to view members that begin with `sin`."
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# Press Tab at the end of the following line\n",
      "scipy.sin"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 8,
       "text": [
        "<ufunc 'sin'>"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Inline Documentation"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "To get help on a certain Python object, type `?` after the object name, and run the cell:"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# Run this cell.\n",
      "int?"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 9
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "In addition, if you press `Shift-Tab` in a code cell, a help dialog will also appear. For example, in the cell above, place your cursor after `int`, and press `Shift-Tab`."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "More Documentation: NumPy, SciPy, Matplotlib"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "In the top menu bar, click on Help, and you'll find a prepared set of documentation links for IPython, NumPy, SciPy, and Matplotlib."
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Experimenting"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Code cells are meant to be interactive. We may present you with several options for experimentation, e.g. choices of variables, audio files, and algorithms. For example, if you see a cell like this, then try all of the possible options by uncommenting the desired line(s) of code. (To run the cell, select \"Cell\" and \"Run\" from the top menu, or press `Shift-Enter`.)"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "x = scipy.arange(50)\n",
      "# Try these too:\n",
      "# x = scipy.randn(50)\n",
      "# x = scipy.linspace(0, 1, 50)\n",
      "x"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 10,
       "text": [
        "array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,\n",
        "       17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,\n",
        "       34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49])"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Saving"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Your code goes directly into an IPython notebook. To save your changes, click on the \"Save\" icon in the menu bar, or type `s` in command mode.\n",
      "\n",
      "If you want to undo a saved edit, use `git checkout -- <file>` to revert the change."
     ]
    }
   ],
   "metadata": {}
  }
 ]
}