Ask Your Question
0

Notebook access from remote computer does not work

asked 2013-09-19 23:18:59 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I installed the binary Sage app (Sage 5.11 OS X 10.6) on OS X 10.7.4. When I click on the Sage icon, Sage starts and opens the web browser to URL localhost:8080. There I have access to my Sage notebooks and every thing works fine.

I would like to access the notebook server over my home network using my iPad. To do this, I follow the instructions in the Sage documents. That is, I start a Sage terminal session and at the sage prompt type notebook(interface='') and hit the return button. The Sage app then opens another browser window at localhost:8080. I try to access the notebook server from my iPad, but it says in the web browser window that the server cannot be found.

I tried closing the web browser on the localhost and using the Sage menu option "Stop server" before starting the Sage terminal but nothing results in the notebook being served over the local network.

How can I get the notebook served over my home network?

If you cannot answer my questions, what can I do to trouble shoot the problem?

Thanks.

edit retag flag offensive close merge delete

Comments

I don't think you would be on localhost on a different machine, even over a local network. I'm not sure what IP address you'd have to connect to - this is more of a networking issue, I think.

kcrisman gravatar imagekcrisman ( 2013-09-20 09:10:43 +0100 )edit

Thanks for the update - hopefully someone can help!

kcrisman gravatar imagekcrisman ( 2013-09-20 21:57:01 +0100 )edit

Thanks, kcrisman, for your comment. I'm using vnc to reach my mac desktop from the iPad until I know enough to serve the Sage notebook out to my local network. It's a little slow, but so am I.

NoUpKeep gravatar imageNoUpKeep ( 2013-09-25 23:09:15 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-14 01:57:43 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I investigated the problem on my mac and found out the following. When Sage starts up, it automatically starts a notebook server process under the Sage process. As long as this process is running, no notebook server can serve out on the local network. (Even with a different port number.)

Signing out on the web browser, quitting the browser, and stoping the server from the Sage menu will not stop this server. (Quitting Sage stops the server, but when you restart Sage, the server is started again.) The only way I found to stop it, is using the mac Activity Monitor app and quitting the python2.7 process under the Sage process.

Then I can type notebook(interface='') and return at the Sage terminal prompt and a server starts that serves the notebook interface out to the local network which can be used through the web browser on another computer. (This notebook server shows up as a python2.7 process under the Terminal process.)

This seems like a bug in the software since there is no way to start a server out to the local network without using other software to modify the running state of the Sage software.

Good luck.

edit flag offensive delete link more

Comments

Thanks - I've noticed this python2.7 process in the past but was always a little mystified about it. I'm going to pass this on to the sage-devel list.

kcrisman gravatar imagekcrisman ( 2013-10-14 09:52:56 +0100 )edit
1

Quitting the server from the menu _should_ stop the server. If not, it's a bug and I need to fix it. More details on your setup might be helpful in that case. That said, in the Preferences there is an option to not start the server when you open the app. I also think you use the default arguments in Preferences to change how the server starts. But that last might still be one of my local changes. (I'm away from my usual computer at the moment, so I can't check).

Ivan Andrus gravatar imageIvan Andrus ( 2013-10-14 17:27:52 +0100 )edit

Feel free to open trac tickets and CC me for the Mac app pieces if they don't work.

Ivan Andrus gravatar imageIvan Andrus ( 2013-10-15 16:46:55 +0100 )edit

Agreed on the "more details needed" because now that I read it, I haven't seen this process not stop.

kcrisman gravatar imagekcrisman ( 2013-10-15 17:55:43 +0100 )edit

You could try the ssh solution stated here: https://amber-md.github.io/pytraj/latest/tutorials/remote_jupyter_notebook (https://amber-md.github.io/pytraj/lat...)

ray8_3 gravatar imageray8_3 ( 2020-01-28 18:33:49 +0100 )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: 2013-09-19 23:18:59 +0100

Seen: 2,243 times

Last updated: Oct 14 '13