Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to register new version IRuby kernel? #60

Closed
stardiviner opened this issue Jan 14, 2016 · 6 comments
Closed

How to register new version IRuby kernel? #60

stardiviner opened this issue Jan 14, 2016 · 6 comments

Comments

@stardiviner
Copy link

I updated Ruby version, and manage ruby envrionment with rbenv.
Current iruby gem is installed under Ruby version 2.3.0-dev.
But jupyter kernels list does not update. I tried command iruby register --force. It does not register a new version ruby kernel. (I check out new kernel in jupyter notebook button New.)
Then I try to find out why. I checked out ~/.ipython/kernels/ruby/kernel.json. It is version 2.3.0.

{"argv":["/home/stardiviner/.gem/ruby/2.3.0/bin/iruby","kernel","{connection_file}"],
"display_name":"Ruby 2.3.0","language":"ruby"}

There is no other kenel configs under ~/.ipython/kernels/.
I don't know why jupyter notebook can't find new version ruby kernel.

@domitry
Copy link
Member

domitry commented Jan 14, 2016

Actually the current version of Jupyter does not seem to check files in ~/.ipython/kernels.
Instead it uses directories listed in the result of jupyter --paths.
See #56 for details.

@stardiviner
Copy link
Author

problem solved. with command jupyter kernelspec install --user ruby.

@rattrayalex
Copy link

The above did not work for me; I had to rm -rf ~/.ipython

@jdetle
Copy link

jdetle commented Sep 1, 2016

Hey! Just found this, @stardiviner's solution worked when I changed it to jupyter kernelspec install --user ~/.ipython/kernels/ruby

@sashaegorov
Copy link

I've just installed iruby, comment above is still helpful.

@dmmfll
Copy link

dmmfll commented Mar 24, 2017

I am using rvm on Ubuntu.
I have been using Jupyter with Ruby 2.3.0 for a while without issues.
I changed to Ruby 2.4. I followed all the instructions for installing iruby, yet the kernel would die every time.
I had to gem install rbczmq in addition to editing kernel.json.
Then the notebook functioned as expected with Ruby 2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants