I think it's due to https://github.com/sagemath/sage/issues/34547. That 
ticket was created because with the old behavior in Sage, instance of 
Octave(), Mathematica(), etc. were created when Sage started up, regardless 
of the availability of the corresponding software. Once those became lazy 
imports, they are apparently not detected by the code in 
sage/repl/interface_magic.py. We could restore the old non-lazy imports, or 
we could not be so clever about magic commands and define them manually, or 
there are probably other solutions.

The following sequence of commands seems to restore them, at least in the 
command line (haven't tested the notebook), if you want a short-term fix:

from sage.repl.interface_magic import InterfaceMagic
import sage.interfaces.all
sage.interfaces.all.__dict__
InterfaceMagic.register_all()


On Tuesday, February 28, 2023 at 7:03:24 AM UTC-8 Emmanuel Charpentier 
wrote:

> I don’t use them very often, bu the %mathematica and %%mathematica magics 
> seem to have recently disappeared. They don’t appear in the %lsmagic 
> output, and raise an error when one attempts to use them.
>
> Can someone shed any light on this ? 
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6f3b7852-de6e-42c9-8c9a-11518b0b0596n%40googlegroups.com.

Reply via email to