macOS sierra 10.12 に Jupiter Notebook をインストールする。
~$ brew install python ~$ brew link python
~$ python --version Python 2.7.10 ~$ which python /usr/bin/python ~$ ls -l /usr/bin/python -rwxr-xr-x 1 root wheel 66576 4 29 08:36 /usr/bin/python* ~$ curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python
~$ pip install --user jupyter ~$ cd ~/Library/Python/2.7/bin ~$ ./jupyter notebook
最後のコマンドは notebook serverを起動するコマンドです。
ブラウザにこのような画面が立ち上がります。
右上のNewのとこからPython2を選ぶとセルにpythonコードを入力できるようになります。
セルに簡単なpythonコードを入れてみます。
セルに入れたpythonコードを実行するにはCellメニューからRunCellsを実行します。
実行結果が表示されました。
時間があったら、グラフ表示方法も調べたいですね。