How to call a python file in scripter

Hi all,

I am using the qupath to export binary mask of annotation and then using the mask to do some deep learning project. My question is that whether can I call python file (.py) in the script editor? Thank you.

I’m afraid not, the script editor only really supports Groovy.

You can run QuPath from Python: https://groups.google.com/d/msg/qupath-users/lE5AJDcxA28/ZvSQAh_DCAAJ

Or you can call the command line interface (at least in Windows) to run a python script from within a Groovy script.
https://groups.google.com/d/msg/qupath-users/bQ_SBLA5OcE/woJVSzoTBQAJ

I haven’t done either of these in quite a while, so there’s a great chance they aren’t up to date with the latest and greatest versions of QuPath.