anaconda / nb_conda_kernels

Package for managing conda environment-based kernels inside of Jupyter
BSD 3-Clause "New" or "Revised" License
601 stars 70 forks source link

Add environment name and prefix in kernelSpec metadata #146

Closed fcollonval closed 5 years ago

fcollonval commented 5 years ago

Hey,

As it is possible to add metadata to KernelSpec,

https://github.com/jupyter/jupyter_client/blob/44980c13680f4e4226cf25f199ce4e4bb6e11296/jupyter_client/kernelspec.py#L28-L37

it would be nice to add the name and folder of the environment for the kernel. Some extensions will benefit from accessing those information directly especially as the environment name as to be cleaned to generate the kernel name.