Skip to content

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

@JonnyCBB

Description

@JonnyCBB

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions