[PYTHON] Settings when using Jupyter Notebook under Proxy server

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

Settings when using Jupyter Notebook under Proxy server
Proxy settings when using pip or Jupyter Notebook
Using Graphviz with Jupyter Notebook
Try using Jupyter Notebook dynamically
DEBUG settings when using Django
Proxy measures when using WEB API
Snippet settings for python jupyter notebook
When pip fails under proxy environment
Somehow I tried using jupyter notebook
Jupyter Notebook extension, nbextensions settings for myself
Start jupyter notebook on GPU server (remote server)
DB settings when using Django + SQLAlchemy + Alembic
Settings when reading S3 files with pandas from Jupyter Notebook on AWS
Build jupyter notebook on remote server (CentOS)
Run Jupyter notebook on a remote server
When Html cannot be output with Jupyter Notebook
Enable Jupyter Notebook with conda on remote server
Try using conda virtual environment with Jupyter Notebook
[Pythonocc] I tried using CAD on jupyter notebook
Remotely open Jupyter notebook launched on the server
Try using Jupyter Notebook of Azure Machine Learning
Jupyter notebook password
Jupyter Notebook memo
Initial settings when using the foursquare API in python