Update jupyter server

This commit is contained in:
2023-10-03 01:23:45 +02:00
parent 50ba75cdbb
commit d1f1291ee5
2 changed files with 36 additions and 11 deletions

View File

@@ -18,16 +18,38 @@ in {
in
readFile config.sops.secrets."jupyter/password".path;
/* kernels = { */
/* pythonDS = let */
/* env = (pkgs.python310.withPackages (pythonPackages: with pythonPackages; [ */
/* numpy */
/* matplotlib */
/* ipykernel */
/* ])); */
/* in { */
/* displayName = "Python for data science"; */
/* argv = [ */
/* "${env.interpreter}" */
/* "-m" */
/* "ipykernel_launcher" */
/* "-f" */
/* "{connection_file}" */
/* ]; */
/* language = "python"; */
/* logo32 = "${env}/${env.sitePackages}/ipykernel/resources/logo-32x32.png"; */
/* logo64 = "${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png"; */
/* }; */
/* }; */
kernels = {
pythonDS = let
python3 = let
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
numpy
matplotlib
scipy
ipykernel
]));
ipykernel
pandas
numpy
scipy
scikit-learn
]));
in {
displayName = "Python for data science";
displayName = "Python 3 for statistics";
argv = [
"${env.interpreter}"
"-m"
@@ -98,6 +120,9 @@ in {
};
services.nginx.virtualHosts."jupyter.feal.no" = {
locations."/".proxyPass = "http://unix:/run/jupyter/jupyter.sock:/";
locations."/" = {
proxyPass = "http://unix:/run/jupyter/jupyter.sock:/";
proxyWebsockets = true;
};
};
}