sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.45k stars 482 forks source link

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

Closed aade5b53-bba9-4258-af2e-60701015159f closed 3 years ago

aade5b53-bba9-4258-af2e-60701015159f commented 3 years ago

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.

CC: @culler @slel

Component: notebook

Keywords: jupyter, macos app

Reviewer: Samuel Lelièvre

Issue created by migration from https://trac.sagemath.org/ticket/31814

aade5b53-bba9-4258-af2e-60701015159f commented 3 years ago
comment:2

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.

aade5b53-bba9-4258-af2e-60701015159f commented 3 years ago

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

aade5b53-bba9-4258-af2e-60701015159f commented 3 years ago
comment:3

Attachment: sage-9.3-kernelStart_unhandled_error.txt

Apparently fixed with sage9.3 rc4.

mkoeppe commented 3 years ago
comment:4

Outdated, should close

slel commented 3 years ago

Changed keywords from jupyter can't connect to jupyter, macos app

slel commented 3 years ago

Reviewer: Samuel Lelièvre

slel commented 3 years ago

Description changed:

--- 
+++ 
@@ -3,3 +3,5 @@
 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.