Please help: Installing Custom kernel in user directory

We are using jupyterhub server and want to install custom kernel inside user directory. Want to know how to install that, I am only able to install globally but it doesn’t suit our needs since we change the kernel.json file for different users

Check jupyter paths and you can install a kernel spec file in each user home directory. In your case, it would be in $HOME/.local/share/jupyter/kernels folder. You can find more details on how to create kernel specs in the documentation

2 Likes

Okay thank you, I am look for a way to create that kernel directory when a new user login, I created a prehook does that work ?

If you mean pre_spawn_hook, yes, that is exactly what you are looking for. You can customize your single user environment in that hook!