[IPython-User] how to setup python notebook to run on a local network

Fernando Perez fperez.net@gmail....
Sun Oct 30 13:01:28 CDT 2011


Hi Massimo,

On Sun, Oct 30, 2011 at 10:49 AM, gmail <massimodisasha@gmail.com> wrote:
>
> ipython notebook --pylab=inline --ip='192.168.1.130'
> (where 192.168.1.130 is the local IP for the computer where python is
> running)
> in this way i'm able to open the notebook .. but running any command it
> doesn't print any results

You need to also set up the websocket hostname:

ipython notebook --pylab=inline --ip='192.168.1.130'
--ws-hostname="your hostname here"

Where the hostname is the actual way clients will connect to it.  It
may be identical to your IP (likely in the case of a 192.168 address)
or it may be an actual public name if the computer is addressable on
the open internet.

Note that if you put your machine on the public internet, you really
should create a password and certificate file to access it over SSL
and with encryption. But if the network is private, just

ipython notebook --pylab inline --ip 192.168.1.130 --ws-hostname 192.168.1.130

should suffice.

Cheers,

f


More information about the IPython-User mailing list