mathematica_console() command not working

30 views
Skip to first unread message

Pablo Vitoria

unread,
Jan 19, 2023, 5:13:28 AM1/19/23
to sage-support
Using Sage 9.7 installed in Arch Linux over WSL2 in Windows 10.
The interface to mathematica works, but the mathematica_console() does not, with this error:

NameError                                 Traceback (most recent call last)
Cell In[16], line 1
----> 1 mathematica_console()

NameError: name 'mathematica_console' is not defined

Is this command not available anymore?

Thanks a lot
Pablo

Emmanuel Charpentier

unread,
Jan 19, 2023, 4:37:16 PM1/19/23
to sage-support

mathematica_console() does not indeed exist. but mathematica.console() does (and so does mathematica.interact(), which might be what you are really searching…).

Pablo Vitoria

unread,
Jan 19, 2023, 5:28:38 PM1/19/23
to sage-support
Ups, sorry about that. 

John H Palmieri

unread,
Jan 19, 2023, 6:22:23 PM1/19/23
to sage-support
"mathematica_console()" is available (or at least it should be) when using Sage from the command-line but not from the notebook. There was a bug, now fixed in https://trac.sagemath.org/ticket/34547, that meant that this command was not available when it should have been.

Trevor Karn

unread,
Jan 20, 2023, 2:45:59 AM1/20/23
to sage-support
Something similar seems to happen with `gap_console()` and `gap.console()`.

John H Palmieri

unread,
Jan 20, 2023, 1:52:10 PM1/20/23
to sage-support
All of the *_console commands should be fixed by ticket #34547.
Reply all
Reply to author
Forward
0 new messages