/ipython-paths

:city_sunset: Paths for IPython before Jupyter 4.0

Primary LanguageJavaScript

IPython paths

Fetches expected IPython paths for you, both system installed and user installed kernels.

Only works on IPython 3.x. For 4.x, you'll need jupyter-paths.

For anything earlier, send a PR.

Full listing, doesn't check validity or existence

> require('.').kernelDirsListing()
[ '/usr/share/jupyter/kernels',
  '/usr/local/share/jupyter/kernels',
  '/Users/rgbkrk/.ipython/kernels' ]

Promise that resolves to an array of valid kernel directories

> require('.').kernelDirs().then((dirs) => console.log(dirs))
Promise { <pending> }
> [ '/usr/local/share/jupyter/kernels' ]