VS Code and ROS with Python 3.11 in a Conda environment is draining my battery – MacOS

I have installed a Conda environment with all the ROS packages from Robostack. This runs in Python 3.11.

The thing is that when I use VS Code to program in Python, with the interpreter in my Conda environment, my Mac M2 starts consumming more than 100% the CPU, and battery just drains in hours:

Activity Monitor

Any idea on solutions for this problem?

Tbh I do not really know if it is VS Code or just the Conda environment running whenever I leave the Turtlebot3 on (I use Gazebo, but I have disabled the GUI to see if the problem improved, it did not).

enter image description here

Read more here: Source link