[IPython-dev] IPython Notebook on Webfaction

T J tjhnson@gmail....
Mon Sep 24 11:19:01 CDT 2012


On Sat, Sep 22, 2012 at 1:54 PM, T J <tjhnson@gmail.com> wrote:

> On Thu, Sep 20, 2012 at 2:42 PM, MinRK <benjaminrk@gmail.com> wrote:
>
>>
>>
>> On Wed, Sep 19, 2012 at 9:32 AM, T J <tjhnson@gmail.com> wrote:
>>
>>> On Wed, Sep 19, 2012 at 4:49 AM, Thomas Kluyver <takowl@gmail.com>wrote:
>>>
>>>> On 19 September 2012 08:49, T J <tjhnson@gmail.com> wrote:
>>>> > the last response from the OP mentions that each open notebook uses 3
>>>> random
>>>> > ports (which differ from the port that the IPython notebook server
>>>> listens
>>>> > on).  Is this true?  This seems like it would be an issue for me.  Can
>>>> > someone explain, in general, what IPython notebook is doing with
>>>> these other
>>>> > ports?
>>>>
>>>> One of them is the main request/response channel (e.g. 'execute this
>>>> code', 'get completions for foo'), one is a publication channel,
>>>> primarily for things printed to stdout, and I think the third is to
>>>> get input for stdin (although the notebook doesn't currently implement
>>>> that).
>>>>
>>>> There's a pull request open that experiments with merging the three
>>>> websocket channels into one - that might help you:
>>>> https://github.com/ipython/ipython/pull/2321
>>>>
>>>>
>>>>
>>> Look promising.  This pull requests seems to make it easier to use the
>>> notebook behind a proxy, but its unclear to me if this allows me to
>>> restrict which the ports the notebooks will try to use.
>>>
>>
>> People get confused by the fact that the notebook communicates with
>> *kernels* via random localhost ports (even there, it connects, it does not
>> listen).  All communications with browsers happen over a single port, and
>> the notebook server only ever listens on that single user-configurable port.
>>
>
>
> Thanks for the clarification. Very helpful.
>

I've given this another try now (still behind the Webfaction proxy), using
pull request #2321, but I'm still getting "404: Not Found".  In order to
use SockJS, must I do any configuration or should it have been automatic?
 Is there a way that I can make IPython provide more detailed log
information so that I can pinpoint why I'm getting the 404s.  Here is what
I see at the command line:

    WARNING:root:404 GET / (127.0.0.1) 0.64ms

My config file is:

c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.base_project_url = '/notebook/'
c.NotebookApp.base_kernel_url = '/notebook/'
c.NotebookApp.port = 26000
c.NotebookApp.open_browser = False
c.NotebookApp.webapp_settings = {'static_url_prefix':'/notebook/static/'}
c.IPKernelApp.pylab = 'inline'
c.IPKernelApp.pylab_import_all = False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120924/24f653e9/attachment.html 


More information about the IPython-dev mailing list