Skip to content

ThomasPinna/python-course

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

282 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Programming for the Humanities

For this course, we will make use of IPython notebooks. Follow the instructions below to install all the software required for this course. (Many thanks to Folgert Karsdorp for his kind help in providing the installation instructions and launching scripts!)

Installation instructions

First we will install Python, the programming language which we will use throughout this course. We will make use of the free Anaconda distribution, which has all the packages we need built in. Important: we will use Python 3.4 in this course, but first you will have to install Python 2.7, so follow exactly the instructions below:

Now we will update our version of Anaconda for Python 3.4 via the command-line. First, open a command line (the scary black screen in which you can type commands for your computer):

  • Under Mac OS X, navigate to /Applications/Utilities and double-click "Terminal"
  • Under Windows, click "Start button Picture" > "All Programs" > "Accessories" > "Command Prompt"
  • Under Linux: press the key combination Ctrl+Alt+T

Issue the following two commands in the command line: enter each command (and hit enter after each command):

On Windows:

  • conda create -n py34 python=3.4 anaconda
  • source py34

Other platforms:

  • conda create -n py34 python=3.4 anaconda
  • source activate py34

Download the course folder for this course, by navigating to https://github.com/mikekestemont/python-course and click "Download ZIP". Save and extract this ZIP folder to a convenient location, such as your Desktop. You should now be able to launch the interactive IPython notebooks in your browser. Open the unzipped folder and:

  • Under Windows: double-click "start-windows.bat"
  • Under Mac OSX: double-click "start-osx.command"
  • Under Linux: double-click "start-unix.sh"

After double-clicking this file once, this should open your browser (preferably Google Chrome or Firefox) on a page http://127.0.0.1:8888/ (or something similar) which says `IP[y]: Notebook'. (Note that this might take a while on slower machines, so don't panic if this page doesn't show up immediately.) If for some reason, the notebook is opened by Internet Explorer, copy the URL and paste that in either Google Chrome or Firefox. If none of this worked, send me an email (firstname.lastname@uantwerp.be), but in the meanwhile you can still use the static versions of each chapter, listed below.

Static Notebooks

Chapter 1 - Variables

Chapter 2 - Collections

Chapter 3 - Conditions

Chapter 4 - Loops

Chapter 5 - Functions and Files

Chapter 6 - Regular Expressions

Chapter 7 - The Pattern Package

About

Tutorial and introduction into programming with Python for the humanities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 85.2%
  • Shell 14.8%