Opened 6 years ago

Closed 6 years ago

#15834 closed defect (invalid)

% mode switching on the command line is sometimes broken

Reported by: was Owned by:
Priority: minor Milestone: sage-6.2
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

Try typing each of these alone on a line, and you'll agree we have a problem:

   %maxima
   %gap
   %gp
   %pari
   %singular
   %lisp

The relevant code is this in misc/sage_extension.py:

    def register_interface_magics(self):
        """Register magics for each of the Sage interfaces"""
        from sage.misc.superseded import deprecation
        interfaces = [(name, obj)
                      for name, obj in sage.interfaces.all.__dict__.items()
                      if isinstance(obj, sage.interfaces.interface.Interface)]

        for real_name, obj in interfaces:
            def tmp(line, name=real_name):
                self.shell.run_cell('%s.interact()' % name)

Change History (5)

comment:1 Changed 6 years ago by chapoton

Something has been changed in #6288, maybe there was a mistake ?

comment:2 Changed 6 years ago by chapoton

Everything work fine for me with a 6.2.beta2. Could you please explain what problem you run into ?

comment:3 Changed 6 years ago by chapoton

  • Status changed from new to needs_info

comment:4 Changed 6 years ago by chapoton

Hello, could you please be more precise ? As far as I can see, there is no problem here.

comment:5 Changed 6 years ago by was

  • Resolution set to invalid
  • Status changed from needs_info to closed

Wow, everything is fixed now (in 6.1.beta)-- before when I was testing this in a recent version of Sage there were numerous issues. Nice work. Closing as invalid.

Note: See TracTickets for help on using tickets.