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

dataDirs method doesn't get all jupyter kernel paths #27

Open
JonnyCBB opened this issue Jul 27, 2018 · 4 comments
Open

dataDirs method doesn't get all jupyter kernel paths #27

JonnyCBB opened this issue Jul 27, 2018 · 4 comments

Comments

@JonnyCBB
Copy link

JonnyCBB commented Jul 27, 2018

Problem
The dataDirs method doesn't pick up all of the kernel directories on my machine. In particular, I installed the Ruby kernel on my machine and although it's picked up by Jupyter, it's not picked up using dataDirs from this package.

Example
This is what I get using dataDirs:

> var jp = require('jupyter-paths')
undefined
> jp.dataDirs({ withSysPrefix: true }).then(console.log)
Promise {
  <pending>,
  domain:
   Domain {
     domain: null,
     _events: { error: [Function: debugDomainError] },
     _eventsCount: 1,
     _maxListeners: undefined,
     members: [] } }
> [ '/Users/jonnybrooks-bartlett/Library/Jupyter',
  '/Users/jonnybrooks-bartlett/anaconda3/envs/rlm/share/jupyter',
  '/usr/local/share/jupyter',
  '/usr/share/jupyter' ]

However, using jupyter kernelspec list I get

jupyter kernelspec list

Available kernels:
  ruby         /Users/jonnybrooks-bartlett/.ipython/kernels/ruby
  julia-0.6    /Users/jonnybrooks-bartlett/Library/Jupyter/kernels/julia-0.6
  julia-0.7    /Users/jonnybrooks-bartlett/Library/Jupyter/kernels/julia-0.7
  python3      /Users/jonnybrooks-bartlett/Library/Jupyter/kernels/python3
  python-3     /usr/local/share/jupyter/kernels/python-3

Notice that the dataDirsmethod doesn't pick up the ruby kernel in /Users/jonnybrooks-bartlett/.ipython/

@rgbkrk
Copy link
Member

rgbkrk commented Aug 1, 2018

Ohhhhh I see because we're not checking the old .ipython directory. That could be handled here.

@rgbkrk
Copy link
Member

rgbkrk commented Aug 1, 2018

Thanks for outlining your kernel directory structure, this is super helpful!

@rgbkrk
Copy link
Member

rgbkrk commented Aug 1, 2018

Issue in IRuby about using the legacy directory: SciRuby/iruby#110

rgbkrk added a commit that referenced this issue Aug 1, 2018
rgbkrk added a commit that referenced this issue Aug 1, 2018
@JonnyCBB
Copy link
Author

JonnyCBB commented Aug 1, 2018

Thanks for addressing this. I've managed to get around the issue by manually moving the Ruby kernel directories to the Jupyter path for now. Let's hope they update it in their repo. I guess we can close this issue when the relevant PR gets merged?

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

2 participants