Infini-DL360/jupyter: add sage kernel

This commit is contained in:
Infinidoge 2025-08-28 09:37:29 -04:00
parent b28efc33ca
commit e92f9e23b9
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -2,6 +2,7 @@
config, config,
common, common,
pkgs, pkgs,
lib,
... ...
}: }:
let let
@ -97,6 +98,18 @@ in
] ]
) )
); );
sage = {
displayName = "SageMath ${pkgs.sageWithDoc.version}";
language = "sage";
argv = [
(lib.getExe pkgs.sageWithDoc)
"--python"
"-m"
"sage.repl.ipython_kernel"
"-f"
"{connection_file}"
];
};
}; };
}; };