How to ...
... install Python
All of the examples here are tested in python 3 (currently version 3.6). If you are on windows, I suggest installing the anaconda python distribution. Anaconda already installs almost all the packages needed for the examples on this blog.
On Linux, you can also install anaconda, or install python 3 from the repository of your distribution.
sudo aptitude update sudo aptitude upgrade sudo aptitude install python3-venv python3-pip
When installing from the repository, I recommend using a virtual environment in order to keep the packages for the blog separate from the packages your distribution uses.
cd ~ virtualenv --python=python3 spectroscopy-env
Then activate the environment and install the needed packages:
source spectroscopy-env/bin/activate
pip install numpy scipy pandas matplotlib jupyter
... get the data
The data needed to recreate the examples in the blog is available as a python
package. You can use pip
to install it:
pip install spectroscopy-data
The package will usually be update together with every new blog post. So if example data is missing, just run
pip install -U spectroscopy-data
to get the latest version (make sure to restart your ipython kernel for the changes to take effect, afterwards).