Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiguofer/pyenv-jupyter-kernel
Pyenv plugin to create a jupyter kernel for every installed pyenv version
https://github.com/aiguofer/pyenv-jupyter-kernel
Last synced: 17 days ago
JSON representation
Pyenv plugin to create a jupyter kernel for every installed pyenv version
- Host: GitHub
- URL: https://github.com/aiguofer/pyenv-jupyter-kernel
- Owner: aiguofer
- License: mit
- Created: 2019-07-21T07:18:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T03:34:19.000Z (8 months ago)
- Last Synced: 2024-10-14T20:48:59.253Z (29 days ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 91
- Watchers: 1
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyenv-jupyter-kernel
Pyenv plugin to create a jupyter kernel for every installed pyenv version. Inspiration from [this gist](https://gist.github.com/thvitt/9072336288921f57ec8741eb4b8b024e)
## Installation
```shell
$ git clone https://github.com/aiguofer/pyenv-jupyter-kernel $(pyenv root)/plugins/pyenv-jupyter-kernel
```## Usage
New kernels are automatically installed for every new version and virtualenv that you install. However, if you want to install the kernel for the current version (if using multiple versions, the top one) you can run:
```shell
$ pyenv register-kernel
```Or to specify a specific version:
```shell
$ pyenv register-kernel
```To create a kernel for all versions you've already created in pyenv:
```shell
pyenv versions --bare | grep -v "/" | xargs -L 1 pyenv register-kernel
```To start up an interactive shell using the kernel for your currently active `pyenv` version:
```shell
jupyter console --kernel=$(pyenv version-name)
```It might be useful to add an alias in your init file:
```shell
alias ipy="jupyter console --kernel=$(pyenv version-name)"
```