Day 1 Lesson 1 Getting Started Python MiniCourse

  • Slides: 16
Download presentation
Day 1 – Lesson 1 Getting Started Python Mini-Course University of Oklahoma Department of

Day 1 – Lesson 1 Getting Started Python Mini-Course University of Oklahoma Department of Psychology 1 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Lesson objectives 1. Describe what Python is 2. Understand how Python can be used

Lesson objectives 1. Describe what Python is 2. Understand how Python can be used in behavioral science 3. Install Python and add-ins 2 Python Mini-Course: Day 1 - Lesson 1 4/5/09

What is Python? General purpose computer programming language Has math and science add-ins Has

What is Python? General purpose computer programming language Has math and science add-ins Has GUI add-ins Multi-platform Same program can run on MS Windows, Mac OS X, Linux, etc. 3 Python Mini-Course: Day 1 - Lesson 1 4/5/09

What can I do with Python? Write programs to run experiments Example: Trivia Lag

What can I do with Python? Write programs to run experiments Example: Trivia Lag Expt Computational modeling Example: f. SAMpy Statistical analyses Example: bootstrapping 4 Python Mini-Course: Day 1 - Lesson 1 4/5/09

What can I do with Python? Data processing and analysis Py. Parse (Kahana lab)

What can I do with Python? Data processing and analysis Py. Parse (Kahana lab) f. MRI (Waisman Brain Imaging Lab) Just about anything else you can think of Games, graphics, audio apps, even cell phone apps (http: //www. awaretek. com/pymo. html) 5 Python Mini-Course: Day 1 - Lesson 1 4/5/09

How does Python compare: Other languages (C, C++, Visual Basic, Java, etc. ) Python

How does Python compare: Other languages (C, C++, Visual Basic, Java, etc. ) Python is easier to learn Python is just as powerful Python is NOT as widely used 6 Python Mini-Course: Day 1 - Lesson 1 4/5/09

How does Python compare: Scientific computing packages (Matlab and Mathematica) Statistical packages (SAS, SPSS,

How does Python compare: Scientific computing packages (Matlab and Mathematica) Statistical packages (SAS, SPSS, R, etc. ) 7 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Python is FREE 8 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Python is FREE 8 Python Mini-Course: Day 1 - Lesson 1 4/5/09

How to get and install Python We’re going to install several components: Python –

How to get and install Python We’re going to install several components: Python – the main language wx. Python – for building and running GUIs Num. Py and Sci. Py – for numeric and scientific computing SPE (Stani’s Python Editor) 9 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing Python www. python. org/download/rel 10 eases/2. 5. 4 Find your platform (Windows or

Installing Python www. python. org/download/rel 10 eases/2. 5. 4 Find your platform (Windows or Mac. OS X) and click on the download link Save the file to your hard drive Run the installer program Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing wx. Python http: //www. wxpython. org/do wnload. php Windows download “win 32 -unicode”

Installing wx. Python http: //www. wxpython. org/do wnload. php Windows download “win 32 -unicode” Mac. OS X download “osx-unicode” Save the install file, then run it 11 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing Num. Py http: //numpy. scipy. org/ Click on the download link Download numpy-1.

Installing Num. Py http: //numpy. scipy. org/ Click on the download link Download numpy-1. 3. 0 rc 2 for your platform and Python version Run the install file 12 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing Sci. Py http: //sourceforge. net/project /showfiles. php? group_id=2774 7 Click on the download

Installing Sci. Py http: //sourceforge. net/project /showfiles. php? group_id=2774 7 Click on the download link Download scipy 0. 7. 0 for your platform and Python version Run the install file 13 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing SPE For MS Windows: http: //prdownload. berlios. de/python/SPE- 0. 8. 4. c-wx 2.

Installing SPE For MS Windows: http: //prdownload. berlios. de/python/SPE- 0. 8. 4. c-wx 2. 6. 1. 0 -no_setup. zip Unzip it to somewhere you will remember (e. g. , Program Files) but don’t rename the folder anything other than “_spe”. Go inside the _spe directory you just created and double click SPE. py 14 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Installing SPE For Mac OS X: http: //olczyk. krzysztof. googlepages. com/SP E. dmg Save

Installing SPE For Mac OS X: http: //olczyk. krzysztof. googlepages. com/SP E. dmg Save the file, mount the disk image, and follow the instructions 15 Python Mini-Course: Day 1 - Lesson 1 4/5/09

Python resources www. python. org http: //python. org/doc/2. 5/tut/ tut. html www. scipy. org

Python resources www. python. org http: //python. org/doc/2. 5/tut/ tut. html www. scipy. org http: //numpy. scipy. org 16 Python Mini-Course: Day 1 - Lesson 1 4/5/09