An open API service indexing awesome lists of open source software.

https://github.com/nteract/ipython-paths

:city_sunset: Paths for IPython before Jupyter 4.0
https://github.com/nteract/ipython-paths

Last synced: about 2 months ago
JSON representation

:city_sunset: Paths for IPython before Jupyter 4.0

Awesome Lists containing this project

README

        

# 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`](https://github.com/nteract/jupyter-paths).

For anything earlier, send a PR.

### Full listing, doesn't check validity or existence

```javascript
> 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

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