Python REPL
Purpose
|
|
NeuroInfo includes MBF Python, a built-in Python REPL (Read-Eval-Print Loop) that offers a live Python environment with direct programmatic access to your image data. Use it to run quick one-off expressions or to execute full custom scripts; you can read and manipulate image data in any supported format using our dedicated MBF Python module. |
Documentation and sample scripts
Documentation and sample python scripts, with examples of how to load image data, are hosted in an MBF Bioscience GitHub repository here.
Image data access is only available through this built-in runtime, accessible by clicking Python REPL from within supported MBF Bioscience software, including NeuroInfo. A standard Python environment, whether launched from the command line or any other installed version of Python, will not have access to image data.
Procedure
-
Click Python REPL on the Image ribbon to open an MBF Python (mbfappenv) window.
If needed, you will be prompted to download and install the latest version of MBF Python.
-
Copy/paste the Python code you want to run directly into the MBF Python REPL window, or run your own custom python scripts.