Can a cell access information contained in a tornado request, such as the IP and the headers?

17 views
Skip to first unread message

Pav A

unread,
Sep 16, 2016, 5:08:46 AM9/16/16
to Project Jupyter
We never got to the bottom of this... 

Can a cell not talk back to the kernel, who, in turn, should have access to the tornado request data, such as Remote Address, User-Agent?

Thomas Kluyver

unread,
Sep 16, 2016, 5:40:18 AM9/16/16
to Project Jupyter
On 16 September 2016 at 10:08, Pav A <rootsum...@gmail.com> wrote:
Can a cell not talk back to the kernel, who, in turn, should have access to the tornado request data, such as Remote Address, User-Agent?

I'm not exactly sure what you mean by the cell talking to the kernel. The code inside a cell is run by the kernel. The Javascript cell object has a reference to the kernel which it can use for communication.

However, the kernel does not handle HTTP requests. The browser and Javascript talks over HTTP to the notebook server (which is written with tornado). The server communicates with the kernel over ZMQ sockets, so the kernel does not have information about the browser's IP address.

Reply all
Reply to author
Forward
0 new messages