Anaconda、Seabornをインストール | Visualize the Invisible

Visualize the Invisible

株価の変動をデータとAIを使って分析、何が起きているかを「見える化」したい。

Mac Book Airに Anacondaをインストールしました。



ターミナルを起動して


「ipython notebook」を実行(suで実行する必要あり。)




sh-3.2# 
sh-3.2# ipython notebook
[I 06:03:42.081 NotebookApp] Serving notebooks from local directory: /Users/kanki




右上の「New」から「Python3」を選んでコマンドを打ち込み、動作することを確認。


2+2 再生ボタン


Ctl + Enterで結果表示


改行は+ボタン


shift + Enter だと結果表示 + 改行。一番よく使う。


タイトルを変更してRenameすると、フォルダ内にxx.ipybで保存される。
画面のセーブボタンで保存


落とすときはブラウザを閉じる。


Ctrl + Cを 同時押しで シャットダウン。


再度起動してみると、保存したxx.ipybが出てくる。




Seaboneをインストール
sh-3.2# pip install seaborn
Collecting seaborn
  Downloading seaborn-0.7.0.tar.gz (154kB)
    100% |????????????????????????????????| 155kB 1.1MB/s 
Building wheels for collected packages: seaborn
  Running setup.py bdist_wheel for seaborn ... done
  Stored in directory: /var/root/Library/Caches/pip/wheels/83/56/50/6dc42e822bb1b1aad5e8f2927b1c932dc89ee4e0b15dac98c6
Successfully built seaborn
Installing collected packages: seaborn
Successfully installed seaborn-0.7.0
You are using pip version 8.0.2, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
sh-3.2# 


動作確認完了。