Installing Python
You need to install a Python distribution that contains the scientific libraries scipy, numpy and matplotlib. Therefore, you should have a look at the Scipy install webpage.
We will try to work with Python 3 codes mostly so it is good for you to have Python 3 installed (there are two versions of Python, Python 2 and Python 3, which are not fully compatible).
In order to run scripts, you have several options~:
- use the command line and some text editor (mostly Linux and Mac)
- use some simple IDE such as Idle (provided by the standard distribution) or Spyder (for windows for instance)
- use the IPython notebook called Jupyter (for Windows, Mac and Linux) in which you can write text+formula+code+output, as in Mathematica. The notebook is an option to write your reports for Homeworks, together with the usual TeX+Figures
some distributions
La procédure recommandée est d'utiliser une distribution tout-en-un qui inclut les toutes les bibliothèques utiles au prix d'une certaine occupation du disque. Consulter le site Scipy install pour plus de précisions.
- Pour ce cours, nous avons essayé la distribution Anaconda qui fonctionne bien sur PC individuels mais a posé des problèmes pour les dossiers utilisateurs partagés en réseau.
- Python(x,y) a mieux fonctionné.
sous Linux ou Mac OS
Python est nativement installé. Si besoin, il faut installer IPython et le notebook, ainsi que les bibliothèques scientifiques scipy, numpy, matplotlib. Consulter le site Scipy install pour plus de précisions.
La distribution anaconda est également disponible sous Linux et Mac OS.
Pour en savoir plus: