Please make sure to have a completely set-up python environment. If you are new to python, we recommend you check out the Python documentation or Anaconda for a more comprehensive guide.
However, we recommend you simply use Google Colab, which is a free Jupyter notebook environment that runs in the cloud and requires no setup. You can access it here. The advantage of using Google Colab is that it comes with many pre-installed packages, and you can install cpm by simply including an extra line at the beginning of your notebook, see below.
To install the cpm package, you can use the following command in your terminal:
pip install cpm-toolboxThere is no need to install any additional dependencies, as the required should be installed alongside cpm.
If you prefer to use Anaconda, I recommend you create a new environment and install cpm there. You can do this with the following commands:
conda create -n cpm python=3.12.4
conda activate cpm
pip install cpm-toolboxIf you want to use cpm in JupyterLab or Google Colab, you can install it directly in the notebook by running the following command in a code cell:
!pip install git+https://github.com/DevComPsy/cpm.gitTo run the workshop, you can either clone the repository or download the files directly from GitHub.
The exercises are designed to be run in a Jupyter notebook, but you can also run them in any Python environment that supports the cpm package.
Uncompleted exercises are in the exercises folder, and completed exercises are in the solutions folder.