Ask Your Question

worksheets inaccessible in 7.3 after attempt to upgrade to Jupytern

asked 2016-09-26 13:11:02 +0200

uzero gravatar image

updated 2016-09-26 21:58:21 +0200

eric_g gravatar image

I just upgraded to Sage7.3 and seem to have lost access to my old worksheets, which were implemented before the change to Jupytern notebooks. I choose "try to upgrade" when asked, and now get a "can't connect to server" error by Safari when I launch, saying Safari can't connect to server "localhost". I checked out the old worksheets before after the upgrade to Sage7.3 and before relaunching and choosing to try to upgrade my worksheets.

What can be done to regain access? And can I migrate to Jupytern notebooks manually after that somehow, maybe by copying the source code?

edit retag flag offensive close merge delete


Hmm, this doesn't seem right - Did 7.3 really automatically upgrade to Jupyter in the Mac app?

kcrisman gravatar imagekcrisman ( 2016-09-27 14:09:45 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-09-26 21:57:03 +0200

eric_g gravatar image

In SageMath 7.3, there is a tool to convert Sage worksheets to Jupyter notebooks:

1/ Run

sage -n export --list

to get the list of your Sage worksheets, the item no. XX being displayed as

admin:XX   | name_of_the_worksheet

2/ Convert the worksheet no. XX to Jupyter format (ipynb) by

sage -n export --ipynb=output_name.ipynb admin:XX
edit flag offensive delete link more

answered 2016-09-27 14:13:05 +0200

kcrisman gravatar image

You should still be able to run the normal notebook by opening a Terminal window (one of the options in the menu bar item, in the Mac app) and running

sage -n # sagenb still default

or, from the sage command prompt,

sage: notebook()

Eventually these will have to be replaced with the correct type of notebook, something along the lines of

sage --notebook=sagenb

All the notebooks should still be in the same location as before.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-09-26 13:11:02 +0200

Seen: 351 times

Last updated: Sep 27 '16