10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter Notebook を Proxy サーバ配下で使う場合の設定

Last updated at Posted at 2017-02-07

設定に手こずったのでメモ。

Jupyter Notebook を Proxy サーバ配下で使う場合には設定が必要。

まずプロファイルを作成:

$ ipython profile create

ファイルを修正。proxy.example.com:80, proxy.example.com:443 の部分には Proxy サーバを記載する。

$ 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"

Jupyter Notebook のセルで設定が反映されたことを確認する

%env
{
...
'HTTP_PROXY': 'http://proxy.example.com:80',
...
10
11
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?