I had a hard time setting it, so make a note.
Settings are required when using Jupyter Notebook under Proxy server.
First create a profile:
$ ipython profile create
Modify the file. The Proxy server is described in the part of proxy.example.com:80 and proxy.example.com:443.
$ vi ~/.ipython/profile_default/startup/00-startup.py
---
import sys,os,os.path
os.environ['HTTP_PROXY']="http://proxy.example.com:80"
os.environ['HTTPS_PROXY']="http://proxy.example.com:443"
Confirm that the settings are reflected in the cells of Jupyter Notebook
%env
{
...
'HTTP_PROXY': 'http://proxy.example.com:80',
...
Recommended Posts