Comment #18 on issue 3427 by [email protected]: sympy imports matplotlib
on start-up
http://code.google.com/p/sympy/issues/detail?id=3427
I forgot that mpmath uses gmpy too. It's probably a waste of time to worry
about it then. Plus the polys use it heavily. If either of the libraries
do any computations at import time, they will potentially be faster with
gmpy loaded.
For numpy and matplotlib, it's worth giving my deferred_import idea a shot
(see the top of the page). To make it work, you only have to prevent any
attributes of numpy or matplotlib from being accessed at import time. It's
subtle, but it makes for cleaner code than passing it through function
calls or trying to mess with globals. The pro of it is that, unlike a
globals approach, if a function is missed, it will still work. The con is
that any kind of check on the module will trigger an import. The good news
is that at the end of the day, we can just import sympy and see if it
triggered a numpy or matplotlib import or not, and even add this to our
test suite.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.