ってことで、rbenvする。
GitHub - rbenv/rbenv: Groom your app’s Ruby environment
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv $ cd ~/.rbenv && src/configure && make -C src
とりゃー
GitHub - rbenv/ruby-build: Compile and install Ruby
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
とりゃー。
$ sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev $ rbenv install -v 2.3.1 $ rbenv global 2.3.1
上記の待ちが暇なんで、ついでにUsing both Python 2.x and Python 3.x in IPython Notebook - Stack Overflowあたりを参考に、
$ conda create -n py27 python=2.7 numpy $ py27con (py27) xxx@yyy:~$ conda install notebook ipykernel (py27) xxx@yyy:~$ ipython kernel install --user
んで、そろそろrbenvが終わって、ruby 2.3.1が使えるようになったので、
$ gem install rbczmq $ gem install iruby $ iruby notebook
こんな感じで、jupyter notebookでpython3 + python2 + ruby 2.3.1 だっ!!!