Ask Your Question
0

worksheets inaccessible in 7.3 after attempt to upgrade to Jupytern

asked 8 years ago

uzero gravatar image

updated 8 years ago

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 sage.app, 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?

Preview: (hide)

Comments

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

kcrisman gravatar imagekcrisman ( 8 years ago )

2 Answers

Sort by » oldest newest most voted
0

answered 8 years ago

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
Preview: (hide)
link
0

answered 8 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 8 years ago

Seen: 467 times

Last updated: Sep 27 '16