Python Library

If you want to write your own scripts to perform particular experiments or protocols, it’s useful not to have to package them up as extensions. Our Python library makes it easy to control your microscope from a simple Python script that can run either on the Raspberry Pi, or over the network.

This can be particularly useful running from a Jupyter notebook on a laptop, allowing you to plot graphs and display images as you go.

The library can be installed with pip install openflexure-microscope-client.

Source and documentation can be found on the GitLab repository.


The MATLAB Client allows you to connect and control an OpenFlexure Microscope over a network. You are able to move the microscope and get images, get a live preview, as well as run extensions.

The files can be downloaded from View OpenFlexure Microscope MATLAB Client on File Exchange.

Source and documentation can be found on the GitLab repository