Installation/setup

  • Install pycro-manager using pip install pycromanager

  • Download and install Micro-Manager, either by manually downloading a nightly build of Micro-Manager 2.0, or programmatically using the installation api function:

    from mmpycorex import download_and_install_mm
    download_and_install_mm()
    
  • Open Micro-Manager, select tools-options, and check the box that says Run server on port 4827 (you only need to do this once)

Verify that installation worked

Run the following code:

from pycromanager import Core

core = Core()
print(core)

which will give an output like:

<pycromanager.core.mmcorej_CMMCore object at 0x7fe32824a208>