
Ubuntu日本語フォーラム

ログインしていません。
ipython notebookをインストールして
リモートのブラウザでアクセスしようと思い、以下を実施しましたが、
##############################################
ipython profile create nbserverで
ipython_notebook_config.py を修正(以下)
c.NotebookApp.ip = '*' # ローカルホスト以外からもアクセス可能にする
c.NotebookApp.open_browser = False # ブラウザが自動で開かないようにする
c.NotebookApp.port = 9999 # サーバーのポートを指定する
参考 http://qiita.com/ynakayama/items/ab3ea36fa8a7f0f6e5b3
##############################################
chromでhttp://IPアドレス:9999/
としても
このウェブページにアクセスできませんと表示されます.
一応telnet、tensorflowのtensorboadは問題なくアクセスできます。
何か設定漏れ、間違いがあればご教授お教え願います。
オフライン
jupyter notebookに入れ替えたら接続しました。(以下)
参考http://qiita.com/joemphilips/items/de5d12723b9b88b5b090
とりあえずこのままで作業しようと思います。
1.念のためipython-notebookアンインストール
sudo apt-get remove ipython-notebook
~/.config/下のipythonディレクトリ削除
2.jupyter インストール
# pip install jupyter
# sudo apt-get install nodejs-legacy npm(何をやっているかわかってない)
3.notebook_config.pyファイルの生成
# jupyter notebook --generate-config
でconfigファイル(~/.jupyter/jupyter_notebook_config.py)を作成。
ipythonを実行、下記のコマンドでパスワードのハッシュ値を生成
In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password:<パスワード入力 エンター>
Verify password:<パスワード入力 エンター>
Out[2]: 'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
4.jupyter_notebook_config.py設定
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 9999
c.NotebookApp.password = u'sha1:XXXXXXX(#3で保存したハッシュ値を記載)'
5.jupyter notebook起動 接続
# jupyter notebook
ブラウザ http://<サーバip>:9999/ ok
オフライン