How to surpress python.exe windows from popping up every time Python is called from MATLAB?

Basically the title - I have a MATLAB script that makes a few thousand calls to a Python script, but each time I call it a python.exe window pops up for a fraction of a second and then closes. The Python script runs on multiple cores using multiprocessing so I'm not sure if that's the reason. Any ideas?

1 Comment

This started happening to me out of the blue with a wrapper to call Xgboost. I've used the exact same script in the past, with the same python environment, but a few weeks ago it just started happening. It's utterly insufferable, and renders my computer largely un-usable. I guess I'll add it to the mounting list of things about Matlab that drive me crazy.

Sign in to comment.

Answers (0)

Asked:

on 13 Jul 2020

Commented:

on 23 Aug 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!