From e92f9e23b9ab9e140b1a95ac98124641eb436646 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 28 Aug 2025 09:37:29 -0400 Subject: [PATCH] Infini-DL360/jupyter: add sage kernel --- hosts/Infini-DL360/jupyter.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/Infini-DL360/jupyter.nix b/hosts/Infini-DL360/jupyter.nix index 9424dce..37d0c4e 100644 --- a/hosts/Infini-DL360/jupyter.nix +++ b/hosts/Infini-DL360/jupyter.nix @@ -2,6 +2,7 @@ config, common, pkgs, + lib, ... }: 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}" + ]; + }; }; };