%lsmagic broken in sage interpreter

40 views
Skip to first unread message

Vincent Delecroix

unread,
Mar 13, 2022, 5:57:50 AM3/13/22
to sage-devel
Dear all,

The IPython magic %lsmagic is supposed to list the available
magic functions. However, this does not seem to work within
the sage interpreter

$ sage -ipython
[1]: %lsmagic
Available line magics:
%alias %alias_magic %autoawait ...

But

$ sage
sage: %lsmagic
<IPython.core.magics.basic.MagicsDisplay object at 0x7f7c07996530>

Any idea on what is going wrong?

Vincent

Eric Gourgoulhon

unread,
Mar 13, 2022, 1:14:48 PM3/13/22
to sage-devel

A workaround is
sage: %display unicode_art    # actually anything but plain
sage: %lsmagic

Eric.

Emmanuel Charpentier

unread,
Mar 14, 2022, 10:55:15 AM3/14/22
to sage-devel
That's Trac#30661...

HTH,

Reply all
Reply to author
Forward
0 new messages