Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
sage.{dynamics,geometry,interfaces}.all: Use lazy_import for imports …
Browse files Browse the repository at this point in the history
…from modules not in sagemath-standard-no-symbolics
  • Loading branch information
Matthias Koeppe committed Oct 2, 2021
1 parent 89bb042 commit 80baf7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/sage/dynamics/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from sage.misc.lazy_import import lazy_import

from sage.dynamics.arithmetic_dynamics.all import *
from sage.dynamics.complex_dynamics.all import *
lazy_import('sage.dynamics.complex_dynamics.mandel_julia',
["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"])
from sage.dynamics.cellular_automata.all import *

# Discrete dynamical systems
Expand Down
5 changes: 3 additions & 2 deletions src/sage/geometry/all.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from sage.misc.lazy_import import lazy_import

from .polyhedron.all import *
from .hyperbolic_space.all import *
lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane')
from .polyhedral_complex import PolyhedralComplex
from sage.misc.lazy_import import lazy_import

lazy_import('sage.geometry.cone', ['Cone', 'random_cone'])
lazy_import('sage.geometry', 'cone_catalog', 'cones')
Expand Down
6 changes: 2 additions & 4 deletions src/sage/interfaces/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
from .magma_free import magma_free
from .macaulay2 import macaulay2, Macaulay2
from .maple import maple, Maple
from .maxima import maxima, Maxima
# import problems
#from maxima_lib import maxima_lib
lazy_import('sage.interfaces.maxima', ['maxima', 'Maxima'])
from .mathematica import mathematica, Mathematica
from .mathics import mathics, Mathics
from .matlab import matlab, matlab_version, Matlab
Expand Down Expand Up @@ -63,7 +61,7 @@
from .magma import magma_console
from .macaulay2 import macaulay2_console
from .maple import maple_console
from .maxima_abstract import maxima_console
lazy_import('sage.interfaces.maxima_abstract', 'maxima_console')
from .mathematica import mathematica_console
from .mathics import mathics_console
from .matlab import matlab_console
Expand Down

0 comments on commit 80baf7b

Please sign in to comment.