Commit 36b42290 authored by Steve Tjoa's avatar Steve Tjoa

added introductory material

parent d1a15436
{
"metadata": {
"name": "",
"signature": "sha256:1abbf29ef46d8fc8d1262eca8a9c8da262d15821c04a149ade6e78d73c9b85c5"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"About This Workshop\n",
"===================\n",
"\n",
"The first CCRMA summer workshop on music information retrieval was taught by Jay LeBoeuf in 2008."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Instructors\n",
"-----\n",
"\n",
"- 2008: Jay LeBoeuf\n",
"- 2009: Jay LeBoeuf, Kyogu Lee\n",
"- 2010: Jay LeBoeuf, Rebecca Fiebrink\n",
"- 2011: Jay LeBoeuf, Stephen Pope, Leigh Smith, Steve Tjoa\n",
"- 2012: Jay LeBoeuf, Leigh Smith, Steve Tjoa\n",
"- 2013: Jay LeBoeuf, Leigh Smith, Steve Tjoa\n",
"- 2014: Jay LeBoeuf, Leigh Smith, Steve Tjoa\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Experimenting\n",
"-----\n",
"\n",
"Code cells are meant to be interactive. If you see a cell like this:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"x = scipy.randn(100)\n",
"# x = scipy.rand(100)\n",
"# x = scipy.arange(100)\n",
"# x = scipy.linspace(0, 1, 100)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 0
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"then try all of the possible options!"
]
}
],
"metadata": {}
}
]
}
\ No newline at end of file
{
"metadata": {
"name": "",
"signature": "sha256:7a2cffc20f7bf3507e91b2fd0b80e7fe188ce17ff878fce17d603fc08c2b86e7"
},
"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.\n",
"\n",
"It's basically the Matlab Desktop or Mathematica Notebook for Python.\n",
"\n",
"An IPython Notebook is comprised of **cells**. Cells are just small units of code or text. They allow you to edit, execute, and analyze small portions of code at a time.\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Modes\n",
"-----\n",
"\n",
"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, press `h`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Tab Autocompletion\n",
"-----\n",
"\n",
"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 `librosa.` and then press `Tab`. You should see a list of members in the Python package `librosa`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Saving\n",
"------\n",
"\n",
"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": {}
}
]
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment