Skip to content

Interfaces: use more lazy imports, restore top-level functions maxima_console etc. #34547

@jhpalmieri

Description

@jhpalmieri

Various files in sage/interfaces/ have this pattern:

class Octave(...):
    ....

octave = Octave()

When combined with from .octave import Octave, octave in sage/interfaces/all.py, this means that an instance of Octave is created when Sage starts up. I think we should avoid this with lazy imports.

Depends on #16522

Component: interfaces

Author: John Palmieri

Branch: 09f5d92

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/34547

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions