JupyterHub: Fix python kernel definition
parent
fe1b1adf8c
commit
cd6c4635b3
|
@ -9,43 +9,41 @@
|
||||||
c.SystemdSpawner.cpu_limit = 1.0
|
c.SystemdSpawner.cpu_limit = 1.0
|
||||||
'';
|
'';
|
||||||
kernels = {
|
kernels = {
|
||||||
python = {
|
python3 = let
|
||||||
python3 = let
|
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
||||||
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
# Necessary for use as a kernel
|
||||||
# Necessary for use as a kernel
|
ipykernel
|
||||||
ipykernel
|
|
||||||
|
|
||||||
# Common Python Libraries
|
# Common Python Libraries
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikit-learn
|
scikit-learn
|
||||||
pandas
|
pandas
|
||||||
matplotlib
|
matplotlib
|
||||||
seaborn
|
seaborn
|
||||||
|
|
||||||
# Neural Data Processing Libraries
|
# Neural Data Processing Libraries
|
||||||
mne-python
|
mne-python
|
||||||
nibabel
|
nibabel
|
||||||
neo
|
neo
|
||||||
|
|
||||||
# Neurosimulators
|
# Neurosimulators
|
||||||
neuronpy
|
neuronpy
|
||||||
nest
|
nest
|
||||||
brian2
|
brian2
|
||||||
]));
|
]));
|
||||||
in {
|
in {
|
||||||
displayName = "Python 3 for Computational Neuroscience";
|
displayName = "Python 3 for Computational Neuroscience";
|
||||||
argv = [
|
argv = [
|
||||||
"${env.interpreter}"
|
"${env.interpreter}"
|
||||||
"-m"
|
"-m"
|
||||||
"ipykernel_launcher"
|
"ipykernel_launcher"
|
||||||
"-f"
|
"-f"
|
||||||
"{connection_file}"
|
"{connection_file}"
|
||||||
];
|
];
|
||||||
language = "python";
|
language = "python";
|
||||||
logo32 = "${env}/${env.sitePackages}/ipykernel/resources/logo-32x32.png";
|
logo32 = "${env}/${env.sitePackages}/ipykernel/resources/logo-32x32.png";
|
||||||
logo64 = "${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png";
|
logo64 = "${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -57,5 +55,4 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue