Ask Your Question
3

Sage takes very long to start—why?

asked 2019-02-19 08:16:22 -0600

Szabolcs gravatar image

updated 2019-02-22 14:11:24 -0600

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 SageMath.app/sage within the app bundle starts very quickly (but this one does not launch the notebook interface). If I start SageMath.app/Contents/MacOS/Sage, 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

Comments

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 13:45:08 -0600 )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 07:09:24 -0600 )edit

2 answers

Sort by » oldest newest most voted
3

answered 2019-02-20 19:34:27 -0600

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, SageMath.app/Contents/MacOS/Sage, 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
0

answered 2019-04-14 10:47:44 -0600

George gravatar image

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

/Applications/SageMath-8.7.app/Contents/MacOS/Sage

is a workaround

edit flag offensive delete link more

Comments

And with Sage 8.8 and Sage 8.9 too ...

Szabolcs gravatar imageSzabolcs ( 2019-10-11 02:18:03 -0600 )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

Stats

Asked: 2019-02-19 08:16:22 -0600

Seen: 425 times

Last updated: Feb 20