I’m attempting to configure a jupyter service that can compile Cython. It therefore needs access to GCC. How can I do this? This is the current configuration I have. Thanks!
{ pkgs
, ...
}:
{
services.jupyter = {
enable = true;
command = "jupyter-notebook";
group = "users";
ip = "localhost";
port = 8888;
user = "matt";
notebookDir = "~/.jupyter";
kernels = {
python3 =
let
env = (pkgs.python3.withPackages (p: with p;
[
numpy
matplotlib
cython
scipy
ipykernel
pandas
]));
in
{
displayName = "Python 3 Jupyter kernel";
argv = [
"${env.interpreter}"
"-m"
"ipykernel_launcher"
"-f"
"{connection_file}"
];
language = "python";
};
};
};
}
I’m not sure the nature in which this is being executed. If it’s running in child processes, you should be able to do "PATH=${lib.makeBinPath [ pkgs.stdenv.cc ]}:$PATH" so you’re not unsetting other PATH paths. Just concerned that you may be getting an ever increasing PATH command if you keep appending from older invocations.