Movatterモバイル変換


[0]ホーム

URL:


LoginSignup
13

Go to list of users who liked

8

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac で IRuby Notebook 環境を構築する方法 2017年版

Last updated atPosted at 2017-01-04

http://qiita.com/kozo2/items/4bfbc9524b302b06710b
のMac版です
と同時に
http://qiita.com/kozo2/items/7ffc1704a72a28d7e21f
の2017年版です.

Ruby のインストール

brew install rbenv automake gmp libtool wgetrbenv install 2.4.0rbenv global 2.4.0echo 'eval "$(rbenv init -)"' >> ~/.bashrcsource ~/.bashrc

Jupyter Notebook のインストール

Anacondaを使います.
JupyterとIRubyは独立しています.(同じzeromqを使っていないといけない,とかそういうことはありません)

Jupyterの(~/.jupyertもしくは~/.ipython下の) kernel設定ファイルに対してこの後の「Jupyter Notebook用Ruby kernelの登録」
が正しく行われてさえいれば,Jupyterは何を使ってinstallしてもらっても構いません.

wget https://repo.continuum.io/archive/Anaconda3-4.3.0-MacOSX-x86_64.shbash Anaconda3-4.3.0-MacOSX-x86_64.sh#基本デフォで回答。下記ではホーム下にインストールしたと仮定し、PATHを追加しなくても動作するようにフルパス書いてます

zeromq, czmq, cztopのインストール

今のところcztopにはzeromq, czmqの先端版が必要なので--HEAD オプションを忘れずに

brew install zeromq --HEADbrew install czmq --HEADgem install cztop

IRuby のインストールとJupyter Notebook用Ruby kernelの登録

リリース版にはcztop supportがまだ入ってないのでspecific_installします

gem install specific_installgem specific_install https://github.com/SciRuby/iruby.gitiruby register --force #~/.jupyterもしくは~/.ipython下にiruby kernel設定が既にあれば上書きします

IRuby Notebookの実行

~/anaconda3/bin/jupyter-notebook

あとは新規Notebookの作成時にRubyのkernelを選択すればOKです.

13

Go to list of users who liked

8
0

Go to list of comments

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
13

Go to list of users who liked

8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?


[8]ページ先頭

©2009-2025 Movatter.jp