This is a minimal template for data analysis with python, intended to researchers in human movement sciences that are new to python.
Cloning this template for each new data analysis problem should facilitate data analyses with python and minimize potential errors.
- Download as a zip file (green button
< > Codeon the top right of the page) - Expand the archive on your computer (e.g., in your
Downloadfolder). - Rename the extracted folder with the name of your new project (e.g.,
ECG_analysis) - Move the new
ECG_analysisfolder where it should be located (e.g., in yourDocuments/CodeProjects/directory) - In VSCode :
- open the new project in a new window.
- open
main.ipynband clickRun all
The template.ipynb notebook contains a minimal template for data analysis with python. It includes the following sections:
- Header:
- The first cell will add a header to the notebook with the project title, author, date.
- You should edit this cell to add your information.
- Data Analysis Cells:
- The cells you will use for data analysis (e.g., loading data, preprocessing, modeling, etc.) go here.
- Export Cell:
- The last cell will save the notebook as a HTML file next to the notebook file and open it in your web browser.
- The HTML will include all the graphics, and will not show the cell numbers.
- Cells tagged with
hidewill not be shown in the HTML file.- You can add the
hidetag to any cell you do not want to appear in the HTML file (e.g., in VSCode, click on...in the icon box in the top left of the cell)
- You can add the
- A minimal Python environment for reproducible research in human movement sciences is my preferred solution.
- Any IDE supporting python and jupyter notebooks is an alternative solution.