JupyterHub on my box runs as systemd daemon and all seems to work well except for Julia.
In ‘Unit’ section I do use for ‘Environment=’, JULIA_LOAD_PATH & JULIA_DEPOT_PATH which I used for ‘julia’ from day one - however…
… I noticed something there: with those ‘envs’ I get Julia pkgs installed where the envs point but kernel itself ends up in: ‘/root/.local/share/jupyter/kernels’ - which is different from other kernels. So I copied that over as otherwise JH would not pick up Julia kernel.
Now back to systemd jupyterhub - when I try to start Julia kernel it will not connect & in the logs I see:
[I 2022-03-22 17:44:32.235 SingleUserNotebookApp log:189] 201 POST /jup/user/pawel/api/sessions (firstname.lastname@example.org) 30.15ms ERROR: LoadError: ArgumentError: Package IJulia not found in current path: - Run `import Pkg; Pkg.add("IJulia")` to install the IJulia package. Stacktrace:  require(into::Module, mod::Symbol) @ Base ./loading.jl:967 in expression starting at /opt/share/julia/extralib/packages/IJulia/e8kqU/src/kernel.jl:1`
I must be missing something trivial - what that might be?
many thanks, L.