root-11/graph-theory

Consider (optionally?) lazily delaying graphics imports

fiendish opened this issue · 1 comments

I know that pep8 says imports should always be at the top, but the plot_3d import here is quite slow and delays startup noticeably for short scripts

from graph.visuals import plot_3d

Maybe consider moving it down to the plot function where plot_3d is actually called?

Done in #52d4ee74c66f656d29524293730bed33eccc902d
Releasing as 2022.4.2 in a few minutes.