Ask Your Question

Sage takes very long to start—why?

asked 2019-02-19 15:16:22 +0100

Szabolcs gravatar image

updated 2019-02-22 21:11:24 +0100

FrédéricC gravatar image

I am using the app version of Sage on macOS 10.14.3. Both version 8.5 and 8.6 take very long to start up. As I remember, previous versions were fine.

Does anyone else experience this problem (on the same OS with the same versions) and is there a simple solution? How can I debug what is happening?

By "slow to start" I mean that after starting the app, nothing at all happens for 1-2 minutes (!). Only _after_ that do I see a browser window with "The SageNB server or Jupyter is currently starting".

The command line executable within the app bundle starts very quickly (but this one does not launch the notebook interface). If I start, startup is also very fast (and this time I do get the notebook). The problem appears only when I launch the app by double-clicking it.

edit retag flag offensive close merge delete


I can just confirm that SageMath 8.6 with macOS High Sierra 10.13.6 launches the Jupyter interface quite quickly. So your problem is probably tied to Mojave or to the way you have configured SageMath. The window with "The SageNB server or Jupyter is currently starting. Please wait..." suggest to check View Log under the Server item in the menu bar. Perhaps you may find there some hints.

Juanjo gravatar imageJuanjo ( 2019-02-19 20:45:08 +0100 )edit

@Juanjo There is no entry in the log that looks relevant. The entries start appearing only after it has started up. Also: I think you misunderstood me: it does not get stuck on the "currently starting" page. That page does not even appear until a couple of minutes after the app was started. Once that page appears at all, everything is fast.

Szabolcs gravatar imageSzabolcs ( 2019-02-25 14:09:24 +0100 )edit

2 Answers

Sort by » oldest newest most voted

answered 2019-02-21 02:34:27 +0100

castal gravatar image

I've been wrestling with this ever since 10.14, "Mojave" came out. I gave an answer to this question, sagemath 8.6 could not work normally on mac 10.14.3 with my own workaround, but your suggestion,, seems to work just fine for me and is easier to do. I have just now written a shell script, made it executable with chmod a+x and put it in the dock, so that is a big improvement!

As I said in my previous answer, I have mentioned this before in the sage-devel forum. I will raise the matter there again if 8.7 doesn't clear it up, and your workaround would seem to point to a very easy solution to this problem.

edit flag offensive delete link more

answered 2019-04-14 17:47:44 +0100

George gravatar image

This is still an issue with Sage 8.7 also. It is still the case that typing


is a workaround

edit flag offensive delete link more


And with Sage 8.8 and Sage 8.9 too ...

Szabolcs gravatar imageSzabolcs ( 2019-10-11 09:18:03 +0100 )edit

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: 2019-02-19 15:16:22 +0100

Seen: 1,414 times

Last updated: Feb 21 '19