Python for the Lab
Empowering scientists and laboratory engineers to automate experimental setups, build modular measurement software, and master Python for scientific instrumentation.
Why Python for the Lab?
Python for the Lab started as an effort to solve a pervasive problem across academia and industrial research labs: experimentalists spend months building sophisticated hardware setups, only to struggle with brittle, unmaintainable, or expensive proprietary software.
My goal was simple: bring modern software engineering practices—modular code architecture, clean separation of concerns, testability, and intuitive user interfaces—into scientific labs using Python.
The Book: Writing the Blueprint for Experimentalists
To provide a structured learning path, I wrote and self-published the book Python for the Lab:
- Instrument communication: Interfacing with serial devices, VISA, USB, and custom microcontrollers.
- Multithreading & Concurrency: Keeping measurement loops responsive and separating acquisition from the UI.
- User Interfaces: Building clean, robust graphical interfaces with PyQt/Qt tailored for experimental control.
- Maintainable Architecture: Designing modular code that colleagues can easily understand and extend when projects transition.
Hands-on Workshops Across Europe
Between 2017 and 2024, I traveled across Europe delivering intensive 3-day in-person workshops at top universities, research institutes, and technology companies:
- Live coding with actual hardware: connecting lasers, sensors, spectrometers, and stages.
- Guiding participants from simple scripts to full-fledged measurement suites.
- Helping labs modernize their legacy codebases and eliminate single-point-of-failure scripts.
Open Source & Community Engagement
Beyond workshops and the book, Python for the Lab became an open knowledge hub:
- Comprehensive guides on instrument drivers, continuous integration for hardware, and best practices.
- Active discussions on forums, Reddit, and social media helping researchers unblock hardware challenges.
- Advocating for open science, open hardware, and reproducible research workflows.
Reflections & Key Takeaways
Running Python for the Lab taught me how to distill complex technical abstractions into accessible, practical lessons. Teaching hundreds of researchers also gave me a deep understanding of the diverse instrumentation challenges across optics, materials science, chemistry, and biotech—insights that continue to inform my work in product management and deep-tech commercialization.
Key Milestones
Published Author
Wrote and published the definitive guide to building laboratory instrumentation software with Python
Learn moreHands-on European Workshops
Delivered intensive 3-day bootcamps at leading universities and research institutes
Open-Source Ecosystem
Created open-source tools and frameworks for modular experiment control
Want to discuss this project?
I'm always open to discussing commercialization strategies and hard-tech hardware challenges.