This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

Install Python on OSX

It is already installed. If you ever want a "fresh" install, you can do this (but really don't need to for this tutorial):
  1. Install Homebrew: http://brew.sh
  2. Install Python
    
    # Hint: You don't need to do this!
    # This is just an tip for the future.
    brew install python
    

Install Python on Ubuntu

It is already installed, but you need some extras
  1. Update software
    sudo apt-get update && sudo apt-get upgrade
  2. Install Python dependencies
    sudo apt-get install python-dev
    sudo apt-get install python-pip
    

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

Install Virtualenv on OSX & Ubuntu (I)

Virtualenv helps to keep each environment for each project clearly separated

  1. Install pip
    
    # On OSX,
    # On Ubuntu you did this in an
    # earlier slide already
    sudo easy_install pip
    
  2. Install virtualenv
    sudo pip install virtualenv
  3. Install virtualenvwrapper
    sudo pip install virtualenvwrapper
  4. to be continued...

Install Virtualenv on OSX & Ubuntu (II)

  1. On OSX, execute the following commands in your Terminal:
    
    echo "export WORKON_HOME=~/Envs" >> ~/.bash_profile
    echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bash_profile
    
  2. On Ubuntu, execute the following commands in your Terminal:
    
    echo "export WORKON_HOME=~/Envs" >> ~/.bashrc
    echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
    

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging

This is the plan

  • Introduction
  • A Command-Line Crash Course
  • Install Python 2.7
  • Starting Python from the Terminal
  • Install Virtualenv & Virtualenvwrapper
  • Install & configure Atom.io editor
  • Create your first Python program
  • Debugging