Commit a262e540 authored by Steve Tjoa's avatar Steve Tjoa

clarification about experimenting; added default import clarification

parent b83bb931
{
"metadata": {
"name": "",
"signature": "sha256:fc454c5edcc53ce3f39585e61fda6a02b56561debd910c358dc6bc07a394048c"
"signature": "sha256:e7d6cf30802c4d390c3070d05c8a43f84ea2ac3448983c9eac409c31fe9e20c0"
},
"nbformat": 3,
"nbformat_minor": 0,
......@@ -41,14 +41,14 @@
"Experimenting\n",
"-----\n",
"\n",
"Code cells are meant to be interactive. If you see a cell like this, you should be able to select it, and from the menu \"Cell\" above, click \"Run\":"
"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": [
"import scipy\n",
"#import scipy\n",
"\n",
"x = scipy.arange(100)\n",
"# x = scipy.randn(100)\n",
......@@ -62,7 +62,7 @@
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 5,
"prompt_number": 1,
"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",
......@@ -73,14 +73,15 @@
]
}
],
"prompt_number": 5
"prompt_number": 1
},
{
"cell_type": "markdown",
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"source": [
"then try all of the possible options!"
]
"outputs": []
}
],
"metadata": {}
......
{
"metadata": {
"name": "",
"signature": "sha256:7a2cffc20f7bf3507e91b2fd0b80e7fe188ce17ff878fce17d603fc08c2b86e7"
"signature": "sha256:3e47f19e4e3e474f96e45baef06f1047acd575cc2b8630e22591c25ead559a32"
},
"nbformat": 3,
"nbformat_minor": 0,
......@@ -50,6 +50,18 @@
"To display the Help Menu, press `h`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Default Imports\n",
"-----\n",
"\n",
"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`.\n",
"\n",
"To view the IPython configuration file, visit `~/.ipython/profile_default/ipython_config.py`."
]
},
{
"cell_type": "markdown",
"metadata": {},
......
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