Search code examples
pythonmatplotlibpippackage

Is it possible to install a single submodule from Matplolib?


I am using the submodule pyplot from Matplotlib and then packaging my app into an installer. I want to limit the size of this installer, is it possible to install this submodule on its own or a subset of Matplotlib? Currently I'm including the entire Matplotlib library in my installer which seems very excessive and redundant.


Solution

  • No, this is not possible. Further, pyplot itself includes very large portions of matplotlib within it and I would expect it to be very hard to try to manually extract the portion that you use.