Trouble setting up Jupyter server

2,863 views
Skip to first unread message

Gary Pajer

unread,
Mar 22, 2016, 12:44:06 PM3/22/16
to Project Jupyter
I have an  ARM7-based SBC (a Beagleboard-xM) in another room, and as a convenience I want to run a Jupyter (python) server on it, and access it from my office.

I followed these instructions.  The first time I started the server, my terminal screen asked for a password with something that looked like this:

[_____________]

There was also a message about Java Script, but it was written over by other text, so I'm not sure what it said.  Perhaps "Install Java Script" or something like that.  I could not type in a password.   Pressing keys resulted in certain messages that I can't recall.   Ctrl-C    Does the server need java script at this point?   How would I install it?  (Ubuntu 14.04, and I have conda on it)

The second time I tried to start the server, no prompt for password, and the usual startup message.  Well, almost usual:

[I 12:23:42.025 NotebookApp] Serving notebooks from local directory: /home/gary/tmp

[I 12:23:42.028 NotebookApp] 0 active kernels 

[I 12:23:42.030 NotebookApp] The IPython Notebook is running at: https://localhost:8888/

[I 12:23:42.031 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

w3m: Can't load https://localhost:8888/tree.


Attempts to access the server at https://192.168.x.xxx:8888 result in "The site cannot be reached" ,  "Connection refused"

I can ssh into the SBC.   I can ssh -Y and run x-applications, as well.   Any ideas?

Gary Pajer

unread,
Mar 22, 2016, 12:49:48 PM3/22/16
to Project Jupyter
I got that first screen again.  It says

IPython Notebook requires JavaScript./tree (::1) 19.47 ms
Please enable it to proceed.

That phrase has overwritten something, so that first line might be a mash-up of the two.

Hmmm.  With some clicking I got it to accept my password.   It appears that a text-based browser (Lynx?) has started.  What's going on?

Thomas Kluyver

unread,
Mar 22, 2016, 12:54:53 PM3/22/16
to Project Jupyter
On 22 March 2016 at 16:49, Gary Pajer <gary....@gmail.com> wrote:
It appears that a text-based browser (Lynx?) has started.  What's going on?

I think that is indeed what happened. Jupyter starts your default browser when you launch it, and when you're ssh-ing into a server, that may well be a text-based one.

To avoid this, run:

jupyter notebook --no-browser

There's also a configuration option you can find to achieve the same thing.

Thomas

Gary Pajer

unread,
Mar 22, 2016, 1:03:04 PM3/22/16
to Project Jupyter


On Tuesday, March 22, 2016 at 12:44:06 PM UTC-4, Gary Pajer wrote:
Sometimes I get the output above, and I can't connect to the server remotely.  Sometimes Lynx starts locally.  Here's the command I use to start the server:

{jupyter notebook --certfile=~/.jupyter/mycert.pem --keyfile=~/.jupyter/mykey.key }

Peter Sprague

unread,
Mar 22, 2016, 1:33:52 PM3/22/16
to Project Jupyter
Did you give Jupyter a reachable ip beside 127.0.0.1/localhost?  Is port 8000 open?

Peter

Gary Pajer

unread,
Mar 22, 2016, 2:07:09 PM3/22/16
to Project Jupyter
Thanks.  That didn't seem to help.  I was thinking about ports.  Maybe my router is blocking them.  I don't think I have control over that.

I can start a local instance of jupyter and a  browser both on the SBC.  I can access the browser on the remote machine through an X-server.  That seems to be a workable option.  Not ideal, but workable.

If I'm a little more careful with the way I click keys, it seems that Lynx starts every time.

Gary Pajer

unread,
Mar 22, 2016, 4:48:21 PM3/22/16
to Project Jupyter
Setting up an SSL tunnel worked.  Log into the remote from the desktop:

ssh m...@remote.address -L127.0.0.1:3129:127.0.0.1:8000


start the server normally (I changed the default port to 8000)


jupyter notebook


Then the server is available from my desktop at http://localhost:3129.


This solution came from here.

Reply all
Reply to author
Forward
0 new messages