[IPython-User] sockjs code test

MinRK benjaminrk@gmail....
Thu Nov 1 08:37:42 CDT 2012


 would offer again, that despite the convenience of using on-the-fly ports,
> the best and most
> web-compliant approach is to tunnel all the client/server interactions
> over the same port/HTTP
> that the client originated and use the "front-controller" pattern on the
> server to sort out what
> goes where.


This is already what the notebook does - only one port (8888 by default) is
used for web client communication.  This is a common source of confusion -
all the zmq / random ports are used by the server to talk to kernels
(entirely localhost).

-MinRK


On Thu, Nov 1, 2012 at 9:06 AM, Massimo Di Stefano <massimodisasha@gmail.com
> wrote:

>   Il giorno Nov 1, 2012, alle ore 5:49 AM, Matthias BUSSONNIER ha scritto:
>
>
> Le 1 nov. 2012 à 04:23, Massimo Di Stefano a écrit :
>
>   Hi All,
>
>
> i've exactly the same needs,
> the network of my institute is under a VPN & firewall
> and they don't allow me to run the notebook outside the VPN
>
> looking for a solution i found the sockjs branch a possible way to figure
> out this problem
> i reinstalled ipython using the sokjs branch .. but i guess i need to
> tune-up some settings in order to have it running.
> because i have exactly the same behavior of master branch.
>
> please can you try to guide me to learn how to use that branch ?
>
>
> For most cases, it shouldn't need more configuration master.
>
> Do you have any errors in the javascript console or or in the command line
> where you ran the notebook ?
>
>
> with VPN ON the crhome js console at the dashbord page says :
>
> Port error: Could not establish connection. Receiving end does not exist.
> miscellaneous_bindings:235
> chromeHidden.Port.dispatchOnDisconnect
>
>
> after i close the vpn connection (needed when i'm ssh into the server  to
> start the notebook) the notebook dashbord is no more available
> blank page.
>
> the log in the ipython standard output is :
>
> !cat nohup.out
> [NotebookApp] Using existing profile dir:
> u'/home/epifanio/.ipython/profile_default'
> [NotebookApp] Serving notebooks from local directory: /home/epifanio
> [NotebookApp] The IPython Notebook is running at:
> http://xxx.xxx.xxx.xxx:8888/
> [NotebookApp] Use Control-C to stop this server and shut down all kernels.
> [NotebookApp] Using MathJax from CDN:
> http://cdn.mathjax.org/mathjax/latest/MathJax.js
> [NotebookApp] Kernel started: 7665850e-ecf6-4368-b253-4807afeab0a1
> [NotebookApp] Connecting to: tcp://127.0.0.1:44548
> [NotebookApp] Connecting to: tcp://127.0.0.1:59842
> [NotebookApp] Connecting to: tcp://127.0.0.1:41603
> [IPKernelApp] To connect another client to this kernel, use:
> [IPKernelApp] --existing kernel-7665850e-ecf6-4368-b253-4807afeab0a1.json
> [NotebookApp] Kernel started: 6c678bbf-b652-4a97-adc8-654caba4963c
> [NotebookApp] Connecting to: tcp://127.0.0.1:54440
> [NotebookApp] Connecting to: tcp://127.0.0.1:47424
> [NotebookApp] Connecting to: tcp://127.0.0.1:58503
> [IPKernelApp] To connect another client to this kernel, use:
> [IPKernelApp] --existing kernel-6c678bbf-b652-4a97-adc8-654caba4963c.json
> [NotebookApp] Using existing kernel: 6c678bbf-b652-4a97-adc8-654caba4963c
> [NotebookApp] Connecting to: tcp://127.0.0.1:54440
> [NotebookApp] Connecting to: tcp://127.0.0.1:47424
> [NotebookApp] Connecting to: tcp://127.0.0.1:58503
>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121101/e4a9f312/attachment.html 


More information about the IPython-User mailing list