LoginSignup
0
0

More than 5 years have passed since last update.

OSX El capitanとJuypter Python,Ruby,R (メモ)

Last updated at Posted at 2016-04-23

Jupyterが便利という話を聞いて、インストールしてみたメモ

環境

  • OSX 10.11.4
  • Ruby 2.2.3
  • Python: 2.7.10
  • R: 3.2.4

irubyを使うために、zeromqを、brew install homebrew/versions/zeromq405として、4.0.5を先に入れるのが良いようだ。
(試行錯誤してやったので順番的にどれが正しいのかはっきりしない)

Jupyter本体(Python)の導入

次のようにする。これをしないと次のようなエラーが出る。Symbol not found: _PyUnicodeUCS2_DecodeUTF8

$ PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.10
$ pyenv virtualenv 2.7.9 tech

拡張機能

extensionを追加してもっと快適なJupyter環境を構築する

私の環境では、psutilがないと言われたので、それも追加で導入

pip install pyyaml
pip install psutil
git clone https://github.com/ipython-contrib/IPython-notebook-extensions
cd IPython-notebook-extensions
python setup.py install

Ruby

ポイント

  • zeromqは4.0.5を使う、最新の4.4だとエラーになる。
  • 参考: iruby hangup
brew install homebrew/versions/zeromq405

R

install.packages("rzmq")
install.packages(c('repr', 'IRkernel', 'IRdisplay'),
                 repos = c('http://irkernel.github.io/', getOption('repos')))
IRkernel::installspec()

参考: Native R kernel for Jupyter

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