Catch errors from kernelspec command, e.g. if it doesn't exist.
Try installing to joinpath(IJulia.kerneldir(),"julia-$(VERSION.major).$(VERSION.minor)"), or maybe all julia-* in the kerneldir.
Find some way to determine the name of the currently active kernel? (It usually is just something like julia-1.8, but it might contain some extra flags...)
Catch errors from kernelspec command, e.g. if it doesn't exist.Try installing tojoinpath(IJulia.kerneldir(),"julia-$(VERSION.major).$(VERSION.minor)")
, or maybe alljulia-*
in the kerneldir.x-ref: https://github.com/oscar-system/Oscar.jl/issues/2090