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

Request for tutorial/workaround to install kernelspecs from nb_conda_kernels to jupyter_client #168

Closed ruxi closed 4 years ago

ruxi commented 4 years ago

nb_conda_kernels dynamically creates kernelspecs from environments and is managed by CondaKernelSpecManager but is not installed onto the system.

That's why there is a discrepency between visible notebook kernelspecs and system kernelspecs

It's not clear how to install the custom nb_conda_kernel kernelspecs to the system via the README.md or wiki documentation. Has others been able to do this?

I've been looking into using the following command, but have been running into bugs while testing

import jupyter_client
jupyter_client.kernelspec.install_kernel_spec

how to list notebook kernelspecs:

import nb_conda_kernels
nb_conda_kernels.CondaKernelSpecManager().find_kernel_specs()

how to list system kernelspecs:

jupyter kenelspec list

or

import jupyter_client
jupyter_client.kernelspec.find_kernel_specs()
mcg1969 commented 4 years ago

Closed as duplicate of #77. I'm afraid this is a longstanding, known issue. More info there.