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
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
Use the lowercase variable instead, it works for me:
Then check your env variable using this:
The output will be like this:
Notes: Since I can't comment due to my reputation (req 50 and I'm newbie), I present new answer instead.
Based on this link.
You have to modify the Jupyter notebook server env. Create a file named
00-something.py
under your Jupyter notebook server profile and add the following:For example:
(or on Windows open up "C:/Users/your username/.jupyter/profile_myserver/startup/00-startup.py" in your editor of choice)
and add
you can confirm the env variables by running
in a cell and the output
Next try
If you get a response [200] then you are all set.
Based on these Jupyter customization instructions:
.jupyter_config
in your home directoryJUPYTER_CONFIG_DIR=~/.jupyter_config
to your bash/shell profile (eg..bash_profile
).startup.py
to~/.jupyter_config
with the following code, customized with your specific proxy information:Way easier: Just add the following to your notebook:
after that, requests will work OK=200, e.g.
An easier solution for me was to add an exception to my proxy configuration. I just put the address
http://localhost:8888
to my exception list and it worked.