Vagrant+VirtualBox環境の構築7(IPython Notebook+CentOS)
IPython Notebookの外部出力
pyQtは下で落とす
http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/PyQt4-4.6.2-9.el6.x86_64.rpm/download/
$ sudo yum localinstall PyQt4-4.6.2-9.el6.x86_64.rpm
matplotlib、scipy、numpy等はeasy_installで
$ sudo easy_install numpy scipy tornado pyzmq pandas ipython pygments matplotlib
IPythonの設定
$ ipython profile create myserver $ sudo vi ~/.ipython/profile_myserver/ipython_notebook_config.py
ipython_notebook_config.pyを一部変更
c = get_config() c.IPKernelApp.pylab = 'inline' c.NotebookApp.ip = '*' c.NotebookApp.open_browser = False #ポート指定 c.NotebookApp.port = 9999
CentOSのファイアウォールを切る
$ sudo service iptables stop
IPythonの立ちあげ
$ ipython notebook --prifile=myserver
http://192.168.33.10:9999
ipython notebookがvagrantの外部環境から使用可能。