9
9

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.

IPython Notebookをローカル以外からアクセスできるようにする設定

9
Last updated at Posted at 2015-09-09

IPython Notebookでデフォルトだとローカル以外からアクセスできなかったので設定を変えようとしてハマった箇所のまとめ

ネットで調べて出てきた内容は以下のコマンドで設定ファイルを作り、

$ ipython profile create nbserver

以下の設定内容を書くとあったが、ちゃんと設定が反映されなかった

$HOME/.ipython/profile_nbserver/ipython_config.py
c.NotebookApp.ip = '*'

バージョンが上がっていろいろと変わっているらしく、jupyterで設定を作り、そっちに設定を書く必要があるみたい

$ jupyter notebook --generate-config

67行目あたりにIPの設定がコメントアウトされているので以下のように変更

$HOME/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '*'

以下で起動すると設定が反映されている

$ jupyter notebook
9
9
0

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
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?