#31814 closed defect (invalid)

sagemath-9.3.app under macOS: can't connect to server for jupyter

Reported by: gh-murrayE Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords: jupyter, macos app
Cc: Marc Culler, Samuel Lelièvre Merged in:
Authors: Reviewers: Samuel Lelièvre
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Samuel Lelièvre)

Sorry, cannot find where to report isse with sage-9.3 (rc4).

I just installed Sage 9.3 app under macOS Big Sur (11.3.1) on Intel iMac. From SageMath-9-3.app I can run sage command-line in Terminal.

But I cannot seem to be able to use Sage from jupyter. I try to pen SageMath-9.3.app and choose "Jupyter notebook from folder" option, then Launch. I get error "Safari Can't Connect to the Server ... can't open the page 'localhost:8888/tree?token=......' because Safari can't connect to the server 'localhost'".

Solved with the Sage 9.3 macOS app.

Attachments (1)

sage-9.3-kernelStart_unhandled_error.txt (2.6 KB) - added by gh-murrayE 17 months ago.
Sage 9.3 kernel error "failed to start the kernel" - Unhandled error

Download all attachments as: .zip

Change History (7)

comment:1 Changed 17 months ago by Matthias Köppe

Cc: Marc Culler added

comment:2 Changed 17 months ago by gh-murrayE

Further info: To start jupyter notebook, I have to start a conda environment in Terminal, then give command "jupyter notebook", which opens a jupyter notebook in Safari.

When the jupyter .ipynb notebook is open in Safari, it shows "Sage 9.3" as the kernel but I immediately see a Kernel error, which persists even if I try to restart the kernel or reconnect to it.

Part of the problem _might_ be that the python being accessed is from the anaconda3 distribution, since I need that to even use the conda environment in Terminal in order to launch jupyter notebook.

The "Unhandled error" for the kernel ends with:

FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/sage-9.3.rc2-current/local/bin/sage'

The complete text of the error message is attached.

Note that I can run, for example, a Julia 1.6.1 kernel from a jupyter notebook.

Last edited 17 months ago by gh-murrayE (previous) (diff)

Changed 17 months ago by gh-murrayE

Sage 9.3 kernel error "failed to start the kernel" - Unhandled error

comment:3 Changed 17 months ago by gh-murrayE

Apparently fixed with sage9.3 rc4.

comment:4 Changed 14 months ago by Matthias Köppe

Milestone: sage-9.4sage-duplicate/invalid/wontfix
Status: newneeds_review

Outdated, should close

comment:5 Changed 14 months ago by Samuel Lelièvre

Cc: Samuel Lelièvre added
Description: modified (diff)
Keywords: macos app added; can't connect removed
Reviewers: Samuel Lelièvre
Status: needs_reviewpositive_review

comment:6 Changed 14 months ago by Matthias Köppe

Resolution: invalid
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.