In mne-python (see above), we have a functionality called sys_info, which gives us (among other things) the versions of all sorts of installed packages.
For this reason, we also import ipympl.
At import time, ipympl actually changes the MPL backend.
Is this something that could be avoided? This change in backend was very surprising to us and it took an in-depth profiling to identify it as the cause of a massive memory leak in a pipeline that produced several plots on each iteration, never closing them due to the backend change.
In mne-python (see above), we have a functionality called
sys_info, which gives us (among other things) the versions of all sorts of installed packages.For this reason, we also import ipympl.
At import time, ipympl actually changes the MPL backend.
Is this something that could be avoided? This change in backend was very surprising to us and it took an in-depth profiling to identify it as the cause of a massive memory leak in a pipeline that produced several plots on each iteration, never closing them due to the backend change.