connection to note book

40 views
Skip to first unread message

James Traynor

unread,
Feb 22, 2020, 2:09:44 PM2/22/20
to sage-s...@googlegroups.com
I receive this response when I try to open notebook


safari cannot connect to local host 8080

Dima Pasechnik

unread,
Feb 22, 2020, 2:15:57 PM2/22/20
to sage-support
what notebook: jupyter? sagenb?
 one should not use sagenb, and it doesn't work with python3



On Sat, 22 Feb 2020, 20:09 James Traynor, <mcgi...@embarqmail.com> wrote:
I receive this response when I try to open notebook


safari cannot connect to local host 8080

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/F98BB854-B7A3-4613-AC09-43328B62E5E2%40embarqmail.com.

rana-aere

unread,
Feb 24, 2020, 3:49:08 AM2/24/20
to sage-support
I experienced a similar error.

The trouble is that loading-page.html has a incorrect address  localhost:8080 for jupyter notebook. The connection to Jupyter notebook is localhost:8888/ not localhost:8080 now.

I assume your started Mac Application of Sagemath by Double click, Dock or LaunchPad.
Please verify your opening window has heading:
"The SageNB server or Jupyter is currently starting. Please wait..."
There are buttons "SageNB interface" and "Jupyter". Both of them link to localhost:8080 mistakenly.

Please try opening localhost:8888 form your browser.
Or if you are familiar with Terminal.app, please use the command
If this opens a Jupyter notebook or its login page, my workaround should be good for you.

My workaround is to edit loading-page.html by a text editor.
You should login MacOS with the same account as the time of your installation of SageMath.
If you put SageMath-9.0.app in /Applications folder, you can locate the loading-page.html by the following pathname.

/Applications/SageMath-9.0.app/Contents/Resources/loading-page.html


If the version is different change "9.0" with the version of your SageMath application.
(Form the Finder, the filename might appear SageMath-9.0 but from the Terminal, we have to write SageMath-9.0.app with the extension .app.)
Opening this file from the Finder needs a technique of typing the path /Applications/.../Resources/ in the Finder's menu of "Go".
But it is simpler to use /Applications/Utilities/Terminal.app and open the pathname /Applications/.../loading-page.html by your preferred text editor.

Once opened loading-page.html, search for the string 8080.
The second hit is in the following patter.

 <a href="http://localhost:8080/">Jupyter</a>


Change this occurrence of 8080 to 8888.


Please tell me if it succeeds.
I am planning to tell the developers many many improvements like this.

If some developer is reading my comment, please arrange you I can report bugs and improvements.


2020年2月23日日曜日 4時09分44秒 UTC+9 James Traynor:
Reply all
Reply to author
Forward
0 new messages