Neurograd summer school - Practical II

Romain Ligneul

Create your Github repository

Just do it :)

Then, link your terminal to Github by typing

gh auth login

You’ll only have to do it once!

Clone the repository of this practical session

Open a terminal and cd to the folder in which you want to place the repository

git clone xxxx

Set up VS code extensions

One key strength of VS Code is the huge set of extensions it offers to make your life easier. Amongst them, we will use the following: - Python - Rainbow CSV - Jupyter - Data Wrangler Install them (File -> Extensions -> Search)

Set up the Python virtual environment

We will create a virtual environment using the miniforge version of conda. - Open VScode and open the folder corresponding to the cloned Github repository - Open a CMD terminal - Create the environment: conda create -n neurograd python=3.11 - Activate the environement: conda activate neurograd - Install the core dependencies: pip install -r requirements.txt - This last step may take a few minutes

Fix the import_csv_data.ipynb notebook

This notebook is used to import RLWM data acquired online before this summer school. Open the notebook in VScode, click on “Select kernel” (top right) and select the neurograd kernel. Then you will execute it cell-by-cell.

Note

The data is already provided in the folder .\prolific_data.

Panda operators of interest in A_import_csv_data

  • .groupby: operation that allows to average a dataframe as a function of specific variables doc
  • pd.concat: combine two or more dataframe horizontally or vertically doc
  • .merge: combine two dataframes by specifying how they should be aligned doc