-
-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Labels
enhancementNew feature or requestNew feature or request
Description
At the moment from pygad import GA
causes matplotlib to be imported. Matplotlib is quite a heavy import that I'd rather avoid if possible when running some code in a limited environment.
Would you consider a conditional import of matplotlib? As in altering pygad so it imports matplotlib at the point of plotting rather than initially. Some other packages such as pandas already use this approach (running import pandas
does not import matplotlib but it will be imported at the point df.plot()
is called)
I know this is the sort of thing people feel strongly about. If it's palatable I could probably have a look at raising a PR but thought it was worth asking first.
ahmedfgad
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request