Documentation error https://doc.sagemath.org/html/en/tutorial/programming.html? attach

30 views
Skip to first unread message

Raymond Rogers

unread,
Dec 24, 2021, 10:16:25 AM12/24/21
to sage-support
Internal title:  Sage Tutorial v9.4 » Programming
Loading and Attaching Sage files
The instruction below fails with the last line "attach" in Jupyter.   Should I report this or just accept that the sage information in doc.sagemath.org doesn't include Jupyter?
----------------------------------

"
Next we illustrate how to load programs written in a separate file into Sage. Create a file called example.sage with the following content:

print("Hello World") print(2^3)

You can read in and execute example.sage file using the load command.

sage: load("example.sage") Hello World 8

You can also attach a Sage file to a running session using the attach command:

sage: attach("example.sage") Hello World 8
"


Raymond Rogers

unread,
Dec 24, 2021, 12:00:42 PM12/24/21
to sage-support
Ah well, some text got dropped.  The last entry "attach" errors out in Jupyter; even through "attach?" says it takes "*.sage", as does the documentation referenced.
Error
UsageError: Invalid GUI request 'sage', valid ones are:dict_keys(['inline', 'nbagg', 'notebook', 'ipympl', 'widget', None, 'qt4', 'qt', 'qt5', 'wx', 'tk', 'gtk', 'gtk3', 'osx', 'asyncio'])

Reply all
Reply to author
Forward
0 new messages