iruby
iruby copied to clipboard
The kernel did not respond to an is_complete_request
Hi,
I tried iRuby in my mac and got the The kernel did not respond to an is_complete_request
warning.
And it takes two enter
to get the result.
Versions
- IRuby 0.3
- ruby 2.5.1p57
- jupyter 4.4.0
$ jupyter console --kernel=ruby
W, [2018-10-13T16:46:46.640597 #37364] WARN -- : Could not load bundler: Could not locate Gemfile or .bundle/ directory
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:221:in `rescue in root'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:217:in `root'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:80:in `bundle_path'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:532:in `configure_gem_home'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:513:in `configure_gem_home_and_path'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:66:in `configure'
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/bundler.rb:134:in `definition'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/command.rb:109:in `check_bundler'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/command.rb:67:in `run_kernel'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/command.rb:34:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/bin/iruby:5:in `<top (required)>'
/usr/local/bin/iruby:23:in `load'
/usr/local/bin/iruby:23:in `<main>'
Jupyter console 6.0.0
IRuby 0.3
In [1]: [1,2]
/usr/local/lib/python3.7/site-packages/jupyter_console/ptshell.py:661: UserWarning: The kernel did not respond to an is_complete_request. Setting `use_kernel_is_complete` to False.
warn('The kernel did not respond to an is_complete_request. '
RuntimeError: Unknown message type: {:idents=>["cd307bcc-063c4936a5009fd298276295"], :header=>{"msg_id"=>"5fce99e5-e898dd61b4bfb14bb8dbfc96", "msg_type"=>"is_complete_request", "username"=>"tjia", "session"=>"cd307bcc-063c4936a5009fd298276295", "date"=>"2018-10-13T08:46:51.306437Z", "version"=>"5.3"}, :parent_header=>{}, :metadata=>{}, :content=>{"code"=>"[1,2]"}, :buffers=>nil}
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/kernel.rb:44:in `dispatch'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/kernel.rb:37:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/command.rb:70:in `run_kernel'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/lib/iruby/command.rb:34:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/iruby-0.3/bin/iruby:5:in `<top (required)>'
/usr/local/bin/iruby:23:in `load'
/usr/local/bin/iruby:23:in `<main>'
Out[1]: [1, 2]
In [2]: [1,2]
:
:
Out[2]: [1, 2]
In [3]:
Please help to take a look.
May be related to #145
This should be fixed in 0.4.0. https://github.com/SciRuby/iruby/commit/514c7475f4d01a3c25fc8caf943e5d58675bd6ad