Is there a similar config to that of .condarc (anaconda 4.0.0) that allows Jupyter to be configured to work behind a corporate proxy on a local machine?
Error received:
HTTPError: HTTP Error 407: Proxy Authentication Required
Another way to pass a proxy address to Python is to set the http_proxy and https_proxy environment variables. If you set environment variables, you don't need to define any proxies in your code. Just be aware that proxy settings passed through code now override settings set via environment variables.
The Jupyter notebook web application is based on a server-client structure. The notebook server uses a two-process kernel architecture based on ZeroMQ, as well as Tornado for serving HTTP requests.
The new collaborative editing feature enables collaboration in real-time between multiple clients without user roles. When sharing the URL of a document to other users, they will have access to the same environment you are working on (they can e.g. write and execute the cells of a notebook).
Embedding a notebook is very straightforward. Just grab the URL of the hosted notebook and put it as an iframe on your website. The below code is an example. Unfortunately, most third-party sites don't support such embeds.
Way easier: Just add the following to your notebook:
In [1]: import os os.environ['http_proxy'] = "http://user:passwd@host:port" os.environ['https_proxy'] = "https://user:passwd@host:port"
after that, requests will work OK=200, e.g.
In [2]: import requests requests.get("https://google.com") Out[2]: <Response [200]>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With