This is a collection of introductory slides on Python that were used in a course given at the School of Mathematics, Statistics & Physics of Newcastle University in 2017. Please direct any queries to philipp.edelmann@newcastle.ac.uk.
conda
command.
pip install --user
.If you don’t have any legacy Python 2 code to maintain, you should go for Python 3. The course uses Python 3 but it will highlight the difference to Python 2 when they come up. With some care it is possible to write code that runs unchanged in Python 2 and Python 3.
All slides from the introductory sessions are publicly available in a repository on Github. They are published under a free license, so reuse them if you like. Corrections and Contributions are appreciated.
The presentation is generated from a Jupyter notebook. You can use the raw notebook file with your local install of Jupyter or directly view it in slide or HTML notebook form.
You can start an instance of Jupyter using the command
jupyter notebook
.
raw notebook file slides HTML notebook
raw notebook file slides HTML notebook
numpy
numpy
raw notebook file slides HTML notebook
matplotlib
raw notebook file slides HTML notebook
scipy
: a collection of functions for scientific
computing that integrates tightly with numpy
raw notebook file slides HTML notebook