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

Register another version of Ruby #164

Open
Shekharrajak opened this issue Jan 21, 2019 · 1 comment
Open

Register another version of Ruby #164

Shekharrajak opened this issue Jan 21, 2019 · 1 comment
Labels

Comments

@Shekharrajak
Copy link
Member

Hi,

I have registered ruby 2.5.3 version while installation of IRuby.
Let me know how can I change it to 2.5.1 or register another version along with it?

@kojix2
Copy link
Member

kojix2 commented Jan 28, 2019

Manual registration:

  1. type jupyter kernelspec list to get the list of available kernels.
    IRuby is usually installed in ~/.ipython/kernels/ruby
  2. copy the directory cp -r ~/.ipython/kernels/ruby ~/.ipython/kernels/ruby-2.5.1
  3. open ~/.ipython/kernels/ruby-2.5.1/kerne.json and replace 2.5.3 to 2.5.1

Kernel spec file should be installed in Jupiter directory.
https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs
However, due to compatibility, or simply old, IRuby saves it in the ~/.ipython directory.

Jupyter team might stop adding .ipython/kernels to the path in the future,
https://github.com/jupyter/jupyter_client/blob/1d807c285ed2ba2c1c05527d21bbe70e16026e3f/jupyter_client/kernelspec.py#L148

iruby register --force does not work when iruby kernel specs are already registered in directories other than ~/.ipython.

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

No branches or pull requests

2 participants