Some modules initialize when they are used, while others initialize everything as soon as you start it. Matplotlib is one of these modules.
Since matplotlib is a huge package that includes many features, I am not surprised that it takes a lot of time, although it can be annoying.
So, answering your question, yes, to some.
If you want to "solve" your problem, you can import matplotlib only when you are going to use it, or have a load / print screen at the beginning of your program.
source share