Ask Your Question

SageMath 9.0 app macOS: jupyter server fails to start

asked 2020-01-05 13:35:42 -0600

murraye gravatar image

updated 2020-01-18 01:53:44 -0600

FrédéricC gravatar image

When I open under macOS Catallina (10.15.2), I get an immediate pop-up error window saying, "Jupyter Server failed to start".

The log shows:

│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
Please wait while the Sage Jupyter Notebook server starts...

However, I can get the Jupyter server to start with an indirect method that was never required in earlier versions of, namely: In Finder, Show package contents for Navigate in Finder to Contents/MacOS. Double-click Sage. That both starts the server and opens the expected client window in Safari, from which I can open and evaluate cells in an existing notebook or create a new SageMath 9.0 notebook.

So something that used to be "hooked up" between the and the command to start the jupyter server has been broken with 9.0.

edit retag flag offensive close merge delete


Note that I can first start sage in Terminal (by executing there /Applications/SageMath-9.0-app/sage) Terminal, then from the sage command line execute: !sage -n jupyter

murraye gravatar imagemurraye ( 2020-01-05 14:44:20 -0600 )edit

same here macOS 15.2, sage math 9.0 Log error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

mihai gravatar imagemihai ( 2020-01-07 15:35:21 -0600 )edit

Same happened to me

joseru gravatar imagejoseru ( 2020-01-07 16:34:22 -0600 )edit

Same here (MacOs Catalina 10.15.2,

I like to work with my default Sage folder mapped to iCloud (through the Documents folder). When I change the default Jupyter path (in the app's preferences) to a folder on the local machine (i.e. not mapped to iCloud), the issue does not occur. With Sage 8.8 and lower, my preference for mapping my default Sage folder to iCloud was never a problem...

Tony-64 gravatar imageTony-64 ( 2020-01-11 09:31:36 -0600 )edit

Another cloud-based folder (such as OneDrive) does work as well. So fortunately it's still possible to have the same view on one's Sage projects from multiple machines...

Tony-64 gravatar imageTony-64 ( 2020-01-17 13:16:50 -0600 )edit

3 answers

Sort by » oldest newest most voted

answered 2020-02-13 00:47:11 -0600

Got it!

  1. Copy from DMG to your application folder. Don't rename it
  2. Right-click the app, select open and confirm you want to open it
  3. You get a message saying Jupyter failed to start
  4. Quit
  5. Open and enter cd /Applications/ then ./sage
  6. When you see the invite sage: enter quit()
  7. You can now launch SageMath from the Finder as usual.
edit flag offensive delete link more


Hi there! I just installed SageMath for the first time and ran into this problem "jupyter server fails to start". I managed to start it using your steps. However when I want to open anything from the menu, such as open "Sage Help", "Sage Tutorial" or "Tour of Sage", it would open a new tap and I would run into the same issue.

So the fix doesn't seem to be "global" for me for some reason. Is there anything I can do? Also: How big are the chances that the developers look into this? Catalina being out since October one would think there must be more users who struggle with this.

Britzel gravatar imageBritzel ( 2020-02-14 06:10:21 -0600 )edit

answered 2020-01-17 13:17:48 -0600

Tony-64 gravatar image

See Samuel Lelièvre's answer to my question here.

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: 2020-01-05 13:35:42 -0600

Seen: 1,747 times

Last updated: Jan 18