1 / 16

Day 1 – Lesson 1 Getting Started

Day 1 – Lesson 1 Getting Started. Python Mini-Course University of Oklahoma Department of Psychology . Lesson objectives. Describe what Python is Understand how Python can be used in behavioral science Install Python and add-ins. What is Python?.

frisco
Download Presentation

Day 1 – Lesson 1 Getting Started

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Day 1 – Lesson 1Getting Started Python Mini-Course University of Oklahoma Department of Psychology Python Mini-Course: Day 1 - Lesson 1

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

  3. 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. Python Mini-Course: Day 1 - Lesson 1

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

  5. What can I do with Python? • Data processing and analysis • PyParse (Kahana lab) • fMRI (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) Python Mini-Course: Day 1 - Lesson 1

  6. 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 Python Mini-Course: Day 1 - Lesson 1

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

  8. Python isFREE Python Mini-Course: Day 1 - Lesson 1

  9. How to get and install Python • We’re going to install several components: • Python – the main language • wxPython – for building and running GUIs • NumPy and SciPy – for numeric and scientific computing • SPE (Stani’s Python Editor) Python Mini-Course: Day 1 - Lesson 1

  10. Installing Python • www.python.org/download/releases/2.5.4 • Find your platform (Windows or MacOS 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

  11. Installing wxPython • http://www.wxpython.org/download.php • Windows • download “win32-unicode” • MacOS X • download “osx-unicode” • Save the install file, then run it Python Mini-Course: Day 1 - Lesson 1

  12. Installing NumPy • http://numpy.scipy.org/ • Click on the download link • Download numpy-1.3.0rc2 for your platform and Python version • Run the install file Python Mini-Course: Day 1 - Lesson 1

  13. Installing SciPy • http://sourceforge.net/project/showfiles.php?group_id=27747 • Click on the download link • Download scipy0.7.0 for your platform and Python version • Run the install file Python Mini-Course: Day 1 - Lesson 1

  14. Installing SPE • For MS Windows: • http://prdownload.berlios.de/python/SPE-0.8.4.c-wx2.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 Python Mini-Course: Day 1 - Lesson 1

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

  16. Python resources • www.python.org • http://python.org/doc/2.5/tut/tut.html • www.scipy.org • http://numpy.scipy.org Python Mini-Course: Day 1 - Lesson 1

More Related