Short Description
Python together with its Modules Scipy, Numpy and Matplotlib are used in a couple of courses in
Numerical Analysis in Lund.
Here we give advices how to install and run Python on your home computer.
You need first to install Python2.7 and the workbench Spyder.
Installation on computers with WinXP/WIN7/WIN8
We recommend that you install Python from the distribution
python(xy).
It includes the workbench Spyder.
Installation on computers with MAC OS
We recommend that you install Python from this distribution
EPD Free.
Furthermore, you need to install
Spyder.
Please make sure that you install the correct version for your OS, i.e. Lion won't work on a Snow Leopard system.
Please note also the
comment concerning setting additional environment variables.
Installation on computers with Ubuntu
Ubuntu comes with Python installed. We recommend that you use Python2.7.
Install SciPy, NumPy and Matplotlib with Ubuntu's package installer Synaptics.
Furthermore, you need to install
Spyder.
Configuration of Spyder
- Open Spyder and go to Tools --> Preferences --> Global Working Directory
Give the details about the directory you use to work in.
- Open Spyder and go to Tools --> Preferences --> Editor --> Advanced Settings
Select Edit templates for new Modules
The template file will be opened. Modify it so that it looks like
# -*- coding: utf-8 -*-
"""
Created on %(date)s
@author: %(username)s
"""
from __future__ import division
from scipy import *
from matplotlib.pyplot import *
Save and quit it.