The KINARM labs run on MATLAB but increasingly we are using Python to do our data analyses and computational modeling (e.g. MotorNet).
Here are some pointers to how to get going with Python, in particular virtual environments.
On MacOS I like to install Python3 using the Homebrew package manager, like this:
brew install python3
python3 -m venv my-venv
source my-venv/bin/activate
pip
is what we use to install packages so we need to install pip into our venv first:
python3 -m ensurepip
For example to install numpy:
python3 -m pip install numpy
python3 -m pip freeze > requirements.txt
This creates a file called requirements.txt
that you can keep with your code, so that anyone can reproduce your entire python environment using venv (see below)
requirements.txt
filepython3 -m pip install -r requirements.txt
deactivate