Search code examples
juliaijulia-notebook

Julia: how do you list kernels installed with `installkernel`?


Is there a built-in IJulia function that list the kernels I have installed? I installed a kernel using installkernel and some time after I wanted to remove it with rm. I could remember the name I gave it but not the path IJulia uses to install the kernels, so I had to manually search my system.

It would be handy if IJulia could list the names and/or paths and I'm surprised that I couldn't find anything.


Solution

  • You can use IJulia.kerneldir() to get the directory holding kernels. Then if you do e.g. readdir(IJulia.kerneldir(), join=true) you get a vector of directory names that can be used in rm.