Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork495
Open
Description
At the momentfrom 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 (runningimport pandas does not import matplotlib but it will be imported at the pointdf.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.