From Python kernel in Jupyterlab cannot connect to proxy.
With code:
import requests
proxy = {“http” : ‘http://162.14.18.11:80’}
r = requests.get(‘http://ipinfo.io/ip’, proxies=proxy, )
print(r.status_code)
print(r.text)
I got this error:
[ProxyError: HTTPConnectionPool(host=‘162.14.18.11’, port=80): Max retries exceeded with url (Caused by ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fae4de90250>: Failed to establish a new connection: [Errno 110] Connection timed out’
It’s a working proxy, how to connect from Jupyter?