Unlike Matlab, the set of Python tools used by scientists does not come from one single source. It is the result of a non-coordinated, chaotic and creative development process originating from a community of volunteers and professionals.
In this chapter I will shortly describe some of the essential tools that every scientific python programmer should know about. It is not representative or complete: it's just a list of packages I happen to know about, and I surely missed many of them.
The set of python scientific packages is sometimes referred to as the "scientific python ecosystem". I didn't find an official explanation for this name, but I guess that it has something to do with the fact that many packages rely on the others to build new features on top of them, like a natural ecosystem.
Jake Vanderplas made a great graphic in a 2015 presentation (the video of the presentation is also available here if you are interested), and I took the liberty to adapt it a little bit:
The entire scientific python stack relies on two core packages:
Numpy provides the N-dimensional arrays necessary to do fast computations, and SciPy adds the fundamental scientific tools to it. SciPy is a very large package and covers many aspects of the scientific workflow. It is organized in submodules, all dedicated to a specific aspect of data processing. For example: scipy.integrate, scipy.optimize, or scipy.linalg. Matplotlib is the traditional package to make graphics in python.
Development environments are not "python packages" per se, but they are helping you to write better code faster. Here are some of them:
There are two packages which I consider essential when it comes to data I/O (input/output) and data analysis:
They both add a layer of abstraction to numpy arrays, giving "names" and "labels" to their dimensions and the data they contain.
# TODO
Back to the table of contents, or jump to this week's assignment.