Jupyter behind a proxy

1,926 views
Skip to first unread message

Guillaume Alleon

unread,
Apr 15, 2016, 1:50:07 AM4/15/16
to Project Jupyter
Hi 

Newbie ahead ;-)

I have installed Jupyter using anaconda on a corporate windows laptop (behind a proxy). Proxy has been set-up for conda in .condarc and everything is fine on this side.
What is not working is using folium (for example) from with a cell in Jupyter - it does not seem able to fetch the map which is probably a proxy issue.
How/where should I set the proxy so that this can work ?

Cheers
Guillaume

MinRK

unread,
Apr 15, 2016, 4:23:03 AM4/15/16
to Project Jupyter

I’m not sure how folium downloads data, so the folium devs might be the ones to ask. If they use standard Python APIs, you can set the HTTP_PROXY and/or HTTPS_PROXY environment variables.

set HTTP_PROXY=http://myproxy.org:123

-MinRK


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/0c1ee61a-8ce4-4011-aafb-0d58935de969%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tog

unread,
Apr 15, 2016, 3:42:03 PM4/15/16
to Project Jupyter
I tried to have

import os
os.environ['http_proxy'] = 'http://user:passwd@host:port' 
os.environ['https_proxy'] = 'https://user:passwd@host:port' 

in a cell but that did not solve my problem.

Btw my jupyter is working with REST web services using requests so this might be linked to Folium indeed.

Is there a location where Jupyter keeps logs that could be reviewed?
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/vqltaPvmSbQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Thomas Kluyver

unread,
Apr 15, 2016, 4:08:02 PM4/15/16
to Project Jupyter
On 15 April 2016 at 20:41, tog <guillaum...@gmail.com> wrote:
os.environ['http_proxy'] = 'http://user:passwd@host:port' 
os.environ['https_proxy'] = 'https://user:passwd@host:port' 

I think environment variables are case sensitive, and they're usually upper case. Try setting HTTP_PROXY and HTTPS_PROXY.

tog

unread,
Apr 15, 2016, 4:42:45 PM4/15/16
to jup...@googlegroups.com
Hi Thomas

Thxs for the suggestion. Did some tests. Actually does not matter if you put lowercase ... it ends up begin rightly assigned to HTTP_PROXY

Problem still there, the map still does not show up :-(



--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/vqltaPvmSbQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

Thomas Kluyver

unread,
Apr 15, 2016, 4:52:37 PM4/15/16
to Project Jupyter
On 15 April 2016 at 21:42, tog <guillaum...@gmail.com> wrote:
Actually does not matter if you put lowercase ... it ends up begin rightly assigned to HTTP_PROXY

Ah, OK, sorry for the noise. I guess this is a difference between Windows and Unix - I tested too, and on my system environment variables are case sensitive.

tog

unread,
Apr 16, 2016, 6:07:54 PM4/16/16
to jup...@googlegroups.com
No issue for the noise ;-)
My issue seems to be related to the fact that I am using Folium which does XMLHTTPRequest to get data. Not yet find a solution though ... so if anyone has an idea, it's welcome!

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/vqltaPvmSbQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

MinRK

unread,
Apr 18, 2016, 5:48:40 AM4/18/16
to Project Jupyter

On Sun, Apr 17, 2016 at 12:07 AM, tog <guillaum...@gmail.com> wrote:

No issue for the noise ;-)
My issue seems to be related to the fact that I am using Folium which does XMLHTTPRequest to get data. Not yet find a solution though ... so if anyone has an idea, it's welcome!

If fetching the data is happening in javascript, it’s the browser that needs the proxy configuration. Chrome’s proxy config.

-MinRK


On Fri, 15 Apr 2016 at 21:52 Thomas Kluyver <tak...@gmail.com> wrote:
On 15 April 2016 at 21:42, tog <guillaum...@gmail.com> wrote:
Actually does not matter if you put lowercase ... it ends up begin rightly assigned to HTTP_PROXY

Ah, OK, sorry for the noise. I guess this is a difference between Windows and Unix - I tested too, and on my system environment variables are case sensitive.

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/vqltaPvmSbQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qiU4pqhZbhfdpMcjuuiDOSMGSKe8TBA7WD%2BSe%3Di6%2BmjhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages