[IPython-User] connecting to remote kernel in 0.11
Sat Aug 6 13:56:59 CDT 2011
Thanks for that superb response -- it does exactly what I want it to do. You
should document this somewhere as a walk-through.
>> RuntimeError: Can only launch a kernel on a local interface. Make sure
>> that the '*_address' attributes are configured properly. Currently valid
>> addresses are: ['127.0.0.1', '127.0.1.1', '0.0.0.0', '']
> This would suggest that our code that determines the available IPs on your
> system isn't working properly. We should probably relax this check, and
> trust the user to know their own IP.
> What do you get with:
> import socket
> hostname = socket.gethostname()
on a couple of different machines, i get:
('machine_name', , ['127.0.1.1'])
which doesn't therefore include my network IPs.
> Following the documentation that 0.0.0.0 opens up the kernel to all
>> interfaces, I try launching ipython with the ip tag set to 0.0.0.0, which
>> does indeed launch a console. However, I can't then seem to connect to this
>> instance anyway I try. The usual method (launching a new instance with the
>> "--existing ..." flags) brings up a qtconsole, displaying the usual headers,
>> but no prompt ever appears. The same is true if I append the extra flags to
>> the second qtconsole of --ip=0.0.0.0 or --ip=192.168.1.2 and so on -- just a
>> promptless console.
> That should definitely work, so it's presumably some kind of bug, but I
> can't think of what it would be.
> ipython qtconsole --ip=0.0.0.0
> # copy '--existing...'
> then connect with:
> ipython qtconsole --ip=192.168.X.Y <paste>
> # or if you are on the same machine:
> ipython qtconsole --ip=127.0.0.1 <paste>
i ran this again, and it works now. this suggests that i was doing something
> As for SSH, you need to set up tunnels. The parallel code will try to set
> up these tunnels for you, but the KernelManager used in the qt code doesn't
> use this yet, and you have to set them up yourself.
As above, thanks for this -- works a charm.
Is there a way of creating a kernel instance without generating a qtconsole
at the same time? At the moment, if I try to launch "ipython qtconsole" over
ssh without a display attached, the kernel never launches.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User