Ask Your Question

sagemath notebook have no open ports

asked 2017-03-20 02:32:14 -0500

danny gravatar image

When I open a sws file in sagemath 7.5.1, I get the following error:

RuntimeError: no available port.

How to repair it.

By the way, is there some easily method to convert sws files to ipynb files.


edit retag flag offensive close merge delete


I think to answer the first question we'll need more information about how you are using Sage, what you downloaded, how you try to open them, etc.

kcrisman gravatar imagekcrisman ( 2017-03-20 08:19:14 -0500 )edit

My OS is macOS Sierra 10.12.3

Sagemath installed from pre-built binarie:

The web browse can not be open whether click sws files or run " /Applications/"

But the jupyter notebook work well.

danny gravatar imagedanny ( 2017-03-20 21:06:40 -0500 )edit

So you mean when you double click the app, it doesn't start?

kcrisman gravatar imagekcrisman ( 2017-03-21 09:47:57 -0500 )edit

I would actually try restarting your computer first to make sure there aren't any stray sagenb processes causing this problem as well, though that usually manifests with a different error message.

kcrisman gravatar imagekcrisman ( 2017-03-21 09:48:32 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2017-03-20 04:49:20 -0500

eric_g gravatar image

The answer to the second question is yes: the command

sage -n export --list

displays the list of of your sws files. Then to convert, say, the one listed as admin:10, run

sage -n export --ipynb=Output.ipynb admin:10

See sage -n --help for further details. In SageMath 8.0 (arriving just after 7.6), some automatic conversion will be implemented.

edit flag offensive delete link more

answered 2017-04-03 08:53:08 -0500

It should be repared now.

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

1 follower


Asked: 2017-03-20 02:32:14 -0500

Seen: 61 times

Last updated: Apr 03