I am Ruby with Homebrew on macOS Sierra 10.12.3. I installed jupyter with pip install and iruby with gem install
When I run iruby notebook
the server starts fine but while creating a new notebook Kernel is always killed with following log.
/usr/local/lib/ruby/gems/2.4.0/gems/iruby-0.2.9/lib/iruby/kernel.rb:18:in `initialize': uninitialized constant IRuby::Kernel::Session (NameError)
from /usr/local/lib/ruby/gems/2.4.0/gems/iruby-0.2.9/lib/iruby/command.rb:70:in `new'
from /usr/local/lib/ruby/gems/2.4.0/gems/iruby-0.2.9/lib/iruby/command.rb:70:in `run_kernel'
from /usr/local/lib/ruby/gems/2.4.0/gems/iruby-0.2.9/lib/iruby/command.rb:34:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/iruby-0.2.9/bin/iruby:5:in `<top (required)>'
from /usr/local/bin/iruby:22:in `load'
from /usr/local/bin/iruby:22:in `<main>'
I have seen other question but there the error message is different.
The iRuby documentation at github suggests using Anaconda and setting your Ruby environment to 2.4.1 using rbenv. I had the same issue when experimenting with the iRuby kernel.
From the Readme: