title: Spyder Proxy Settings
body: <p>I am trying to use Spyder for Python/Tensorflow within a company's network. Unfortunately I cannot disable the Firewall, which brings some Proxy problems with it.</p>
  
  <p>Using this very basic code</p>
  
  <pre><code>import tensorflow as tf
  learn = tf.contrib.learn
  tf.logging.set_verbosity(tf.logging.ERROR)
  mnist = learn.datasets.load_dataset('mnist')
  </code></pre>
  
  <p>throws following error</p>
  
  <p><i>File "C:\Users\xxx\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1320, in do_open raise URLError(err)</p>
  
  <p>URLError: &lt; urlopen error [Errno 11004] getaddrinfo failed ></i></p>
  
  <p>Setting environment variables http_proxy and https_proxy does lead to the same problem. </p>
  
  <p><strong>Is there any way to edit proxy settings in Spyder directly? If not: how do I adjust the proxy in python?</strong> </p>
  
  <pre><code>import urllib2
  proxy_user='xxx'
  proxy_password='xxx'
  proxy_ip='proxy.company:8080'
  proxy_url = 'http://' + proxy_user + ':' + proxy_password + '@' + proxy_ip
  proxy_support = urllib2.ProxyHandler({"http":proxy_url})
  opener = urllib2.build_opener(proxy_support,urllib2.HTTPHandler)
  urllib2.install_opener(opener)
  </code></pre>
  
  <p>throws following error</p>
  
  <p><i>ModuleNotFoundError: No module named 'urllib2'</i></p>
  
  <p>Thanks in advance,
  Johnny</p>