Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tested on windows xp

  • Loading branch information...
commit 274181a6e30b7a0d32aa6372610ca7f1c7118c9b 1 parent b1535bb
Catherine Devlin authored
403 blocks.ipynb
View
22 additions, 381 deletions not shown
0  fill.sh 100755 → 100644
View
File mode changed
97 lecture.ipynb
View
@@ -27,8 +27,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -44,8 +43,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -61,8 +59,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -78,8 +75,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -95,8 +91,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -112,8 +107,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -129,8 +123,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -146,8 +139,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -168,8 +160,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -185,8 +176,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -202,8 +192,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -219,8 +208,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -236,8 +224,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -253,8 +240,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -270,8 +256,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -290,8 +275,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -307,8 +291,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -324,8 +307,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 1
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -341,8 +323,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 2
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -358,8 +339,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 2
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -375,8 +355,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 2
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -392,8 +371,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 3
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -409,8 +387,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 3
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -426,8 +403,7 @@
"input": [],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 3
+ "outputs": []
},
{
"cell_type": "markdown",
@@ -563,8 +539,7 @@
],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 6
+ "outputs": []
},
{
"cell_type": "code",
@@ -574,16 +549,7 @@
],
"language": "python",
"metadata": {},
- "outputs": [
- {
- "output_type": "pyout",
- "prompt_number": 8,
- "text": [
- "85"
- ]
- }
- ],
- "prompt_number": 8
+ "outputs": []
},
{
"cell_type": "code",
@@ -593,16 +559,7 @@
],
"language": "python",
"metadata": {},
- "outputs": [
- {
- "output_type": "pyout",
- "prompt_number": 11,
- "text": [
- "8"
- ]
- }
- ],
- "prompt_number": 11
+ "outputs": []
},
{
"cell_type": "markdown",
95 setup.windows.ipynb
View
@@ -101,25 +101,39 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "Goal #2: Run installation script\n",
- "================================"
+ "Goal #2: Install software\n",
+ "========================="
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "Insert the CD or USB drive provided by an instructor. Using Windows Explorer (start it by pressing Windows key + \"E\"), drag the \"workshop\" folder onto your own computer to make your own copy of the class materials. Then you can remove the CD or USB drive and pass it along. If you can't use a CD or USB drive, download [this file](https://github.com/catherinedevlin/mpwfw_exercises/archive/master.zip) and have an instructor help you prepare it.\n",
+ "Copy the files\n",
+ "--------------\n",
+ "\n",
+ "Insert the CD or USB drive provided by an instructor. Using Windows Explorer (start it by pressing Windows key + \"E\"), drag the \"workshop\" folder onto the Desktop of your own computer to make your own copy of the class materials. Then you can remove the CD or USB drive and pass it along. If you can't use a CD or USB drive, download [this file](https://github.com/catherinedevlin/mpwfw_exercises/archive/master.zip) and have an instructor help you prepare it.\n",
+ "\n",
+ "Install Python and pyzmq\n",
+ "------------------------\n",
+ "\n",
+ "Double-click the \"workshop\" folder you just copied to enter it, then enter the \"windows\" folder.\n",
+ "\n",
+ "*If your computer is 64-bit*: Double-click \"python-2.7.3.amd64.msi\" and accept all the defaults to install Python. Then double-click \"pyzmq-2.2.0.win-amd64-py2.7.msi\" to install pyzmq the same way.\n",
+ "\n",
+ "*If your computer is 32-bit*: Double-click \"python-2.7.3.msi\" and accept all the defaults to install Python. Then double-click \"pyzmq-2.2.0.win32-py2.7.msi\" to install pyzmq the same way.\n",
+ "\n",
+ "*If you don't know*: I know, that's not a beginner-level question! So try double-clicking \"python-2.7.3.amd64.msi\". If that works, your computer is 64-bit, so go ahead and follow the 64-bit directions. If you get an error message saying something like \"not supported by this processor\", your computer is 32-bit, so follow those directions instead.\n",
+ "\n",
+ "Install Notepad++ and IPython\n",
+ "-----------------------------\n",
"\n",
- "Double-click the \"workshop\" folder you just copied to enter it, then right-click \"install.bat\". On the pop-up menu that appears, choose \"Run as Administrator\". Keep clicking the \"OK\" and \"Install\" buttons (accepting all the defaults) as it installs several programs on your computer:\n",
+ "Next, back in the \"Desktop\\workshop\\windows\\install\" folder in Windows Explorer, see the \"install.bat\" file. Right-click it; if \"Run as Administrator\" appears in the pop-up menu, select that; otherwise, just select \"Open\". Keep clicking the \"OK\" and \"Install\" buttons (accepting all the defaults) as it installs on your computer:\n",
"\n",
- "* The Python language\n",
"* IPython, a special Python environment we'll use for the workshop\n",
"* Notepad++, a text editor that's good for programming with\n",
"\n",
- "All these programs are free and open-source.\n",
- "\n",
- "The script will also add Python to your \"PATH\", which just means that you'll be able to run Python no matter what directory you're in at the time."
+ "Like Python, these programs are free and open-source."
]
},
{
@@ -147,7 +161,53 @@
" Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n",
" >>>\n",
"\n",
- "The ``>>>`` indicates that you are at a Python prompt.\n",
+ "The ``>>>`` indicates that you are at a Python prompt. If it does, hooray! You can skip down to \"Exiting Python\".\n",
+ "\n",
+ "If Python doesn't start\n",
+ "-----------------------\n",
+ "\n",
+ "Instead of the Python prompt, do you see a message like\n",
+ "\n",
+ " 'python' is not recognized as an internal or external command,\n",
+ " operable program or batch file.\n",
+ "\n",
+ "Darn! The installation script from Goal #2 was supposed to add Python to your PATH, but that script doesn't work on every computer. (It's not your fault!) That means we have to add Python to the PATH by hand. \n",
+ "\n",
+ "*\"What's the PATH\"? It's a list of all the directories your computer should look in when you type a command like 'python'.*\n",
+ "\n",
+ "So here's what we do. Feel free to ask for help if you're having trouble.\n",
+ "\n",
+ "* Close your command prompt window\n",
+ "\n",
+ "* Get to System Properties\n",
+ "\n",
+ "Open up \"My Computer\" by clicking on the Start menu or the Windows logo in the lower-left hand corner, and navigate to \"My Computer\" (for Windows XP) or \"Computer\" (For Vista and Windows 7).\n",
+ "\n",
+ "Right-click on the empty space in the window, and choose Properties.\n",
+ "\n",
+ "*If you're using XP*, a window labeled \"System Properties\" will pop up. Click the \"Advanced\" tab.\n",
+ "\n",
+ "*If you're not using XP*, a window labeled \"View basic information about your computer\" will appear. \n",
+ " - In this window, click \"Advanced system settings\". \n",
+ " - A window with the title \"System Properties\" will appear.\n",
+ "\n",
+ "* Edit the Path\n",
+ "\n",
+ " - Within System Properties, make sure you are in the tab labeled \"Advanced\".\n",
+ " - Click the button labeled \"Environment Variables\".\n",
+ " - A window labeled \"Environment Variables\" will appear.\n",
+ " - In this window, the screen is split between \"User variables\" and \"System variables\". Within \"System variables\", scroll down and find the one labeled Path. Click the \"Edit...\" button.\n",
+ " - A window with the \"Variable name\" and the \"Variable value\" should appear. The \"Variable value\" will already have some text in it; click in the box to unhighlight it (we don't want to accidentally delete that text).\n",
+ " - In the \"Variable value\" box, scroll to the end. Add the following text, and hit OK. Make sure to include the semicolon at the start!\n",
+ "\n",
+ " ;c:\\python27\\;c:\\python27\\scripts\n",
+ "\n",
+ " - Hit \"OK\" to close out the system properties window.\n",
+ "\n",
+ "To test your new PATH, open up a *new* command prompt; it needs to be a new command prompt because the changes you just made didn't take affect in prompts that were already open. Now go back to the beginning of Goal #3 and start again. This time you should be able to skip this middle section!\n",
+ "\n",
+ "Exiting Python\n",
+ "--------------\n",
"\n",
"Exit the Python prompt by typing\n",
"\n",
@@ -258,15 +318,18 @@
"This lets you run IPython cells, which are like the interactive Python prompt you tried out\n",
"in Goal #3, right within your browser.\n",
"\n",
- "1. Open a command window (see Goal #1) and use `cd` to navigate into the `workshop` directory. \n",
+ "Open a command window (see Goal #1) and use `cd` to navigate into the `workshop` directory:\n",
"\n",
- "2. Type\n",
+ " cd Desktop\n",
+ " cd workshop\n",
+ "\n",
+ "Type\n",
"\n",
" ipython notebook\n",
"\n",
" and hit `Enter`.\n",
"\n",
- "3. Your browser should come up with a page called \"IP[y]: Notebook\". That's your IPython Dashboard; it has a list of notebooks. Click \"notebook_practice\" and follow the instructions on the notebook that it brings up.\n",
+ "Your browser should come up with a page called \"IP[y]: Notebook\". That's your IPython Dashboard; it has a list of notebooks. Click \"notebook_practice\" and follow the instructions on the notebook that it brings up.\n",
"\n",
"Goal #7: Tutorial\n",
"=================\n",
@@ -275,6 +338,14 @@
"\n",
"After \"day1.1\", you'll go through \"day1.2\" and then part of \"exercises\". We'll leave the rest for tomorrow!"
]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
}
],
"metadata": {}
1  setup.windows.url
View
@@ -0,0 +1 @@
+http://nbviewer.ipython.org/urls/raw.github.com/catherinedevlin/mpwfw_exercises/master/setup.windows.ipynb
12 windows/install.bat 100644 → 100755
View
@@ -1,10 +1,14 @@
-install_python.bat
setx /M PATH %PATH%;C:\Python27;C:\Python27\Scripts;C:\Python27\Tools\Scripts
-cd distribute-0.6.35
+
+cd distribute-0.6.35
+
c:\Python27\python setup.py install
+
cd ..
-c:\Python27\Scripts\easy_install pip
-c:\Python27\Scripts\easy_install pyzmq
+
+c:\Python27\Scripts\easy_install pip
+
c:\Python27\Scripts\pip install pyreadline ipython tornado ipython_doctester
+ ipythonblocks
npp.6.3.Installer.exe
18 windows/install_python.bat
View
@@ -1,18 +0,0 @@
- @echo off
- if /i %processor_architecture%==AMD64 GOTO AMD64
- if /i %PROCESSOR_ARCHITEW6432%==AMD64 GOTO AMD64
- if /i %processor_architecture%==x86 GOTO x86
- GOTO ERR
- :AMD64
- python-2.7.3.amd64.msi
- rem GOTO EXEC
- rem :x86
- rem python-2.7.3.msi
- rem GOTO EXEC
- rem :EXEC
- rem rem do arch independent stuff
- rem GOTO END
- rem :ERR
- rem @echo Unsupported architecture!
- rem pause
- rem :END
Please sign in to comment.
Something went wrong with that request. Please try again.