Update jupyter server
This commit is contained in:
parent
83061e2976
commit
5dc9b031e6
|
@ -18,16 +18,38 @@ in {
|
||||||
in
|
in
|
||||||
readFile config.sops.secrets."jupyter/password".path;
|
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 = {
|
kernels = {
|
||||||
pythonDS = let
|
python3 = let
|
||||||
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
||||||
numpy
|
ipykernel
|
||||||
matplotlib
|
pandas
|
||||||
scipy
|
numpy
|
||||||
ipykernel
|
scipy
|
||||||
]));
|
scikit-learn
|
||||||
|
]));
|
||||||
in {
|
in {
|
||||||
displayName = "Python for data science";
|
displayName = "Python 3 for statistics";
|
||||||
argv = [
|
argv = [
|
||||||
"${env.interpreter}"
|
"${env.interpreter}"
|
||||||
"-m"
|
"-m"
|
||||||
|
@ -98,6 +120,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."jupyter.feal.no" = {
|
services.nginx.virtualHosts."jupyter.feal.no" = {
|
||||||
locations."/".proxyPass = "http://unix:/run/jupyter/jupyter.sock:/";
|
locations."/" = {
|
||||||
|
proxyPass = "http://unix:/run/jupyter/jupyter.sock:/";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ wireguard:
|
||||||
vaultwarden:
|
vaultwarden:
|
||||||
admintoken: ENC[AES256_GCM,data:mJDiu0tgJQmvmJcJMULmctJvPN6/uM9VaoigHOMFkve9Vd3IMrpDmyJq+ibLpul+hw4PlLARjRzOxdZVcX7AB+uOOOrypppOIfvYC6U=,iv:YcyYLEHeIsCchcEy+fOMiQi8Cgf24AwQDpL7fhogNEU=,tag:1SqpNvuPhfjYIjvvRV34/Q==,type:str]
|
admintoken: ENC[AES256_GCM,data:mJDiu0tgJQmvmJcJMULmctJvPN6/uM9VaoigHOMFkve9Vd3IMrpDmyJq+ibLpul+hw4PlLARjRzOxdZVcX7AB+uOOOrypppOIfvYC6U=,iv:YcyYLEHeIsCchcEy+fOMiQi8Cgf24AwQDpL7fhogNEU=,tag:1SqpNvuPhfjYIjvvRV34/Q==,type:str]
|
||||||
jupyter:
|
jupyter:
|
||||||
password: ENC[AES256_GCM,data:eTcjhRphz+2+QAPIPh/H4Dy3SK5bhUVTMkg=,iv:I+fdFG/zNqCj5Wl2H+qJb/eIfjrWmu2fUsxITBMM2N8=,tag:Vim/Fepf/Q67hjUJlXIkbg==,type:str]
|
password: ENC[AES256_GCM,data:MYnrNSesZn97ArnrGS6nHMnSSmDpBCk4/H6zJx1O+M8tjm2SWf25Pk1HcRzdJ5nUyPvMmoaJ0zAdptZYMiGmh2p4emaEbSOerxhEKyrFnuaS3PZRBgEUBAMQ3r0FNwUFNQ+e711t2fHD,iv:gZkwZwFJCn/oSIanNaOhpTZNG9qVvtRlO8f8KvuDR08=,tag:cXvFwQRhd24mcidMOki2Qg==,type:str]
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
|
@ -58,8 +58,8 @@ sops:
|
||||||
NENEM2VLRDBzTWM0ckdPVThaeE0xL2MKTAvsDKgaoj0Fz9CoNbP6s1kROlDbbXtB
|
NENEM2VLRDBzTWM0ckdPVThaeE0xL2MKTAvsDKgaoj0Fz9CoNbP6s1kROlDbbXtB
|
||||||
4rFRGN+WZJrBioz5nN4kR7mVFKa4w6z6Pu3D5WLyK7UQQkZJ64avdw==
|
4rFRGN+WZJrBioz5nN4kR7mVFKa4w6z6Pu3D5WLyK7UQQkZJ64avdw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2023-09-18T11:59:23Z"
|
lastmodified: "2023-09-18T12:45:40Z"
|
||||||
mac: ENC[AES256_GCM,data:dTejNchI4iKODArCaotXwVkLmjm+mt0u9KOajj1MBAUQ31p+0r5v3smrOO6ZdlCn4t+F8C8F//pnTw/zr8TSRYFbwMaJtDpPn5Dl/ZNuHmWgEM1JN/1obA6kfGaj5LVM01DhfzD5MGU9s3gSA9SjdRB4I1iT33nuO6xGIXgESn8=,iv:8isU2ZBSKqsmSZMRgebuP17o/tWSiq+nSmN5QyAAwPM=,tag:GVwlBmvvo5s7y3CIvyGi4Q==,type:str]
|
mac: ENC[AES256_GCM,data:UfB8zJR4ijFPrm9942XL1uSPCN9wGSM/eEFyT/zEgtUkS8+y8pnRcMrDHBxxgB261us4XLL7lN3gxviPtlHJ3HpoftjRanmRdmyHkeWc3XTPNWHzAsWI9psLWAYOZGympY8nOoFnhgY3WaatMhETs/xB1rIH4k2C8mU3XwsnKhw=,iv:F29buZyeDQgmdZ7BEnpUvXkKcRwIhNvpNq9TJL9pDtk=,tag:b5bh1ATX6bbcboBnpeWApQ==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.7.3
|
version: 3.7.3
|
||||||
|
|
Loading…
Reference in New Issue