Welcome to the GAMMA 2024 Workshop on Python Programming for Movement Sciences. This repository provides the materials and guidance for participants to get hands-on experience with Python programming for movement data analysis.
In this workshop, we will cover essential programming concepts tailored to analyzing movement data using Python. The workshop is designed to be beginner-friendly and will guide you through setting up the environment and running your first analyses.
To follow along with this workshop, you'll need access to Google Colab. Below are the steps to get you set up and ready for the exercises:
-
Sign in to Google Colab
Go to Google Colab and sign in with your Google account. If you don't have an account, you can create one for free. -
Create a New Notebook
Once signed in, click on "File" in the top-left corner and select "Open notebook." -
Open the GitHub Tab
In the dialog, select the GitHub tab and paste the following repository URL:
https://github.com/neurogeriatricskiel/gamma_2024 -
Open the Notebook
In the repository, find the notebook namedgamma_ws3_python_programming.ipynband open it. This notebook contains the core exercises and instructions for the workshop.
For those who prefer to run the notebooks on their local machines, here are the steps:
-
Download or Clone the Repository
To run the notebooks locally, you need to have the repository files on your machine. You can either:- Download the repository: Click on the "Code" button at the top of the repository page and select "Download ZIP." Extract the ZIP file to your desired location.
- Clone the repository: If you have Git installed, run the following command in your terminal:
git clone https://github.com/neurogeriatricskiel/gamma_2024.git
-
Navigate to the Notebooks Folder
Once the repository is downloaded or cloned, open your terminal (on macOS or Linux) or command prompt (on Windows) to navigate to the specific folder that contains the workshop notebooks. Here’s how to do it step by step:-
Open Command Prompt:
- Press
Win + Rto open the Run dialog. - Type
cmdand pressEnter. This opens the Command Prompt.
- Press
-
Change Directory to the Repository:
- If you downloaded the ZIP file, you need to locate the path to where you extracted the files. For example, if you extracted it to
C:\Users\YourUsername\Downloads\gamma_2024, you would type:cd C:\Users\YourUsername\Downloads\gamma_2024\notebooks
- If you cloned the repository using Git, you will also have it in your chosen directory. For example:
cd C:\path\to\your\gamma_2024\notebooks
- If you downloaded the ZIP file, you need to locate the path to where you extracted the files. For example, if you extracted it to
-
Open Terminal:
- You can find Terminal in Applications > Utilities, or you can search for it using Spotlight (press
Cmd + Spaceand type "Terminal").
- You can find Terminal in Applications > Utilities, or you can search for it using Spotlight (press
-
Change Directory to the Repository:
- Similar to Windows, you need to know where the repository is located on your system. If you downloaded the ZIP file to your
Downloadsfolder, type:cd ~/Downloads/gamma_2024/notebooks
- If you cloned the repository, navigate to the path you specified during cloning, for example:
cd ~/path/to/your/gamma_2024/notebooks
- Similar to Windows, you need to know where the repository is located on your system. If you downloaded the ZIP file to your
-
-
Install Jupyter Notebook
To run the notebooks locally, ensure that you have Python and Jupyter Notebook installed. You can install Jupyter by running:pip install notebook
-
Launch Jupyter Notebook
Once Jupyter Notebook is installed, start the Jupyter Notebook server by running:jupyter notebook
-
Open the Workshop Notebook
In your web browser, Jupyter Notebook will open automatically. Navigate togamma_ws3_python_programming.ipynband you can begin working with it.
