High-Performance Python for Scientists

High-Performance Python for Scientists

How to identify performance bottlenecks, optimize numerical workflows, streamline data handling, and extend analyses beyond the limits of a single machine


High-Performance Python for Scientists
Author
Dr. Nicholas Del Grosso

Modern neuroscience produces large, complex datasets that place heavy demands on analysis code. This three-day workshop will focus on practical ways to make Python analyses more efficient and scalable. Participants will learn how to identify performance bottlenecks, optimize numerical workflows, streamline data handling, and extend analyses beyond the limits of a single machine.

The course emphasizes approaches that are both rigorous and usable in day-to-day research, with the aim of helping you write code that can keep pace with the scale of today’s neuroscience.

Credits

Dr. Nicholas Del Grosso

Installation

To run the course materials on your own machine:

  1. Install VSCode as your editor
  2. Install pixi or alternatively conda to create virtual Python environments (see the lessons on environment and package management)
  3. Download the materials for a lesson using the "Download Materials" button
  4. Extract the zip file and open the notebook in VSCode
  5. In VSCode, open a new terminal and install the environment:
pixi install
conda env create -f environment.yml
conda activate performance_python

Course Contents

Measuring and Profiling Performance in Python Code

Effective Memory Management

Compiling Code for High-Performance Computing