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
- Host: GitHub
- URL: https://github.com/nteract/ipython-paths
- Owner: nteract
- Created: 2015-12-26T05:44:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T22:17:33.000Z (over 8 years ago)
- Last Synced: 2025-03-30T21:02:23.141Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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' ]
```